We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c5cad9 commit 4ed0b15Copy full SHA for 4ed0b15
governance/program/src/state/proposal_transaction_buffer.rs
@@ -96,11 +96,11 @@ impl ProposalTransactionBuffer {
96
97
/// Check to make validate the size of buffer of the transaction buffer
98
pub fn invariant(&self) -> Result<(), ProgramError> {
99
- if self.final_buffer_size as usize >= MAX_BUFFER_SIZE {
+ if self.final_buffer_size as usize > MAX_BUFFER_SIZE {
100
msg!("Current final buffer size: {}", self.final_buffer_size);
101
return Err(GovernanceError::FinalBufferSizeExceeded.into());
102
}
103
- if self.buffer.len() >= MAX_BUFFER_SIZE {
+ if self.buffer.len() > MAX_BUFFER_SIZE {
104
msg!("Current buffer size: {}", self.buffer.len());
105
106
0 commit comments