forked from TrueCloudLab/frostfs-node
[#873] innerring/notary: Change notary deposit logic
IR tries to keep 1:3 proportion of GAS and notary balances respectively. If that proportion has been messed(means that notary balance is lower than required) it sends half of its GAS balance to the notary service. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
a25bd2112d
commit
e5748bfc96
5 changed files with 58 additions and 11 deletions
|
@ -24,6 +24,8 @@ type (
|
|||
EpochState interface {
|
||||
SetEpochCounter(uint64)
|
||||
EpochCounter() uint64
|
||||
SetEpochDuration(uint64)
|
||||
EpochDuration() uint64
|
||||
}
|
||||
|
||||
// AlphabetState is a callback interface for inner ring global state.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue