forked from TrueCloudLab/frostfs-node
[#1486] node: Use endless notary deposit for side chain
Signed-off-by: Alex Vanin <a.vanin@yadro.com>carpawell/fix/multiple-cache-update-requests-FROST
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)
|
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 (
|
||||||
|
|
Loading…
Reference in New Issue