forked from TrueCloudLab/frostfs-node
[#846] morph/notary: Add nonce parameter to notary invocation method
This prevents notary requests collisions for TXs that contains equals hashable fields. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
3a8f0edac1
commit
e3c0288e50
3 changed files with 18 additions and 10 deletions
|
@ -94,7 +94,8 @@ func (s *Server) voteForSidechainValidator(validators keys.PublicKeys) error {
|
|||
epoch := s.EpochCounter()
|
||||
|
||||
s.contracts.alphabet.iterate(func(letter GlagoliticLetter, contract util.Uint160) {
|
||||
err := s.morphClient.NotaryInvoke(contract, s.feeConfig.SideChainFee(), voteMethod, int64(epoch), validators)
|
||||
// FIXME: do not use constant nonce for alphabet NR: #844
|
||||
err := s.morphClient.NotaryInvoke(contract, s.feeConfig.SideChainFee(), 1, voteMethod, int64(epoch), validators)
|
||||
if err != nil {
|
||||
s.log.Warn("can't invoke vote method in alphabet contract",
|
||||
zap.Int8("alphabet_index", int8(letter)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue