forked from TrueCloudLab/frostfs-node
[#1486] node: Use endless notary deposit for side chain
Signed-off-by: Alex Vanin <a.vanin@yadro.com>
This commit is contained in:
parent
ba74244d1b
commit
b0eeb0dfcf
1 changed files with 1 additions and 9 deletions
|
@ -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 a new issue