Fixed minor bug for get signers from penalties header.

This commit is contained in:
parmarrushabh 2018-12-28 12:21:37 +05:30
parent 9fe12cb097
commit 973f9d1271
2 changed files with 3 additions and 3 deletions

View file

@ -236,7 +236,7 @@ func (st *StateTransition) TransitionDb() (ret []byte, usedGas uint64, failed bo
contractAction = "contract creation"
} else {
// Increment the nonce for the next transaction
nonce = st.state.GetNonce(sender.Address())+1
nonce = st.state.GetNonce(sender.Address()) + 1
st.state.SetNonce(sender.Address(), nonce)
ret, st.gas, vmerr = evm.Call(sender, st.to().Address(), st.data, st.gas, st.value)
contractAction = "contract call"

View file

@ -683,7 +683,7 @@ func (s *PublicBlockChainAPI) GetMasternodes(b *types.Block, ctx context.Context
if prevCheckpointBlock != nil {
masternodes = engine.GetMasternodesFromCheckpointHeader(prevCheckpointBlock.Header(), curBlockNumber, s.b.ChainConfig().XDPoS.Epoch)
}
} else {
} else {
log.Error("Undefined XDPoS consensus engine")
}
}
@ -980,7 +980,7 @@ func (s *PublicBlockChainAPI) rpcOutputBlockSigners(b *types.Block, ctx context.
}
}
}
} else {
} else {
log.Error("Undefined XDPoS consensus engine")
}
}