forked from TrueCloudLab/frostfs-node
[#465] settlement: Use unified details format for all asset transfers
Unified format uses transfer type as the first byte and extra details next. List of transfer types used in contracts defined in `details.go`. It includes: - audit settlement, - basic income collection, - basic income distribution. Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
1d68e74636
commit
3e9c578e62
9 changed files with 75 additions and 29 deletions
|
@ -41,7 +41,7 @@ func (inc *IncomeSettlementContext) Distribute() {
|
|||
})
|
||||
})
|
||||
|
||||
common.TransferAssets(inc.exchange, txTable)
|
||||
common.TransferAssets(inc.exchange, txTable, common.BasicIncomeDistributionDetails(inc.epoch))
|
||||
}
|
||||
|
||||
func normalizedValue(n, total, limit *big.Int) *big.Int {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue