[#1486] ir: Use endless notary deposit for side chain

Signed-off-by: Alex Vanin <a.vanin@yadro.com>
This commit is contained in:
Alexey Vanin 2022-11-30 19:48:56 +03:00 committed by fyrchik
parent b6a40241f8
commit ba74244d1b

View file

@ -46,10 +46,7 @@ func (s *Server) depositSideNotary() (tx util.Uint256, err error) {
return util.Uint256{}, fmt.Errorf("could not calculate side notary deposit amount: %w", err) return util.Uint256{}, fmt.Errorf("could not calculate side notary deposit amount: %w", err)
} }
return s.morphClient.DepositNotary( return s.morphClient.DepositEndlessNotary(depositAmount)
depositAmount,
uint32(s.epochDuration.Load())+notaryExtraBlocks,
)
} }
func (s *Server) notaryHandler(_ event.Event) { func (s *Server) notaryHandler(_ event.Event) {