parazyd %!s(int64=4) %!d(string=hai) anos
pai
achega
6b46af3a5a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/consensus/state.rs

+ 1 - 1
src/consensus/state.rs

@@ -462,7 +462,7 @@ impl ValidatorState {
             Some(mut chain) => {
             Some(mut chain) => {
                 debug!("Proposal to fork a forkchain was received.");
                 debug!("Proposal to fork a forkchain was received.");
                 chain.proposals.pop(); // removing last block to create the fork
                 chain.proposals.pop(); // removing last block to create the fork
-                if !chain.proposals.len.is_empty() {
+                if !chain.proposals.is_empty() {
                     // if len is 0 we will verify against blockchain last block
                     // if len is 0 we will verify against blockchain last block
                     self.consensus.proposals.push(chain);
                     self.consensus.proposals.push(chain);
                     return Ok(self.consensus.proposals.len() as i64 - 1)
                     return Ok(self.consensus.proposals.len() as i64 - 1)