[#1486] node: 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:51:48 +03:00 committed by fyrchik
parent ba74244d1b
commit b0eeb0dfcf

View file

@ -141,15 +141,7 @@ func makeNotaryDeposit(c *cfg) (util.Uint256, error) {
return util.Uint256{}, fmt.Errorf("could not calculate notary deposit: %w", err) return util.Uint256{}, fmt.Errorf("could not calculate notary deposit: %w", err)
} }
epochDur, err := c.cfgNetmap.wrapper.EpochDuration() return c.cfgMorph.client.DepositEndlessNotary(depositAmount)
if err != nil {
return util.Uint256{}, fmt.Errorf("could not get current epoch duration: %w", err)
}
return c.cfgMorph.client.DepositNotary(
depositAmount,
uint32(epochDur)+notaryDepositExtraBlocks,
)
} }
var ( var (