forked from TrueCloudLab/frostfs-node
[#1486] node: Use endless notary deposit for side chain
Signed-off-by: Alex Vanin <a.vanin@yadro.com>fyrchik/simplify-services
parent
ba74244d1b
commit
b0eeb0dfcf
|
@ -141,15 +141,7 @@ func makeNotaryDeposit(c *cfg) (util.Uint256, error) {
|
|||
return util.Uint256{}, fmt.Errorf("could not calculate notary deposit: %w", err)
|
||||
}
|
||||
|
||||
epochDur, err := c.cfgNetmap.wrapper.EpochDuration()
|
||||
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,
|
||||
)
|
||||
return c.cfgMorph.client.DepositEndlessNotary(depositAmount)
|
||||
}
|
||||
|
||||
var (
|
||||
|
|
Loading…
Reference in New Issue