mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 10:05:18 +00:00
add weighted address tags (#336)
This commit is contained in:
parent
33ad221e5f
commit
d24f364ed3
@ -222,8 +222,8 @@ func NewCollateralAuction(seller string, lot sdk.Coin, endTime time.Time, maxBid
|
||||
|
||||
// WeightedAddresses is a type for storing some addresses and associated weights.
|
||||
type WeightedAddresses struct {
|
||||
Addresses []sdk.AccAddress
|
||||
Weights []sdk.Int
|
||||
Addresses []sdk.AccAddress `json:"addresses" yaml:"addresses"`
|
||||
Weights []sdk.Int `json:"weights" yaml:"weights"`
|
||||
}
|
||||
|
||||
// NewWeightedAddresses returns a new list addresses with weights.
|
||||
|
Loading…
Reference in New Issue
Block a user