Update to follow DB spec

This commit is contained in:
a_bennassar
2020-07-31 15:55:09 +02:00
parent 819b29d9ba
commit 638defd031
16 changed files with 172 additions and 107 deletions

View File

@@ -5,9 +5,10 @@ import (
)
// Bid is a struct that represents one bid in the PoH
// WARNING: this is strongly based on the previous implementation, once the new spec is done, this may change a lot.
type Bid struct {
SlotNum SlotNum // Slot in which the bid is done
InfoCoordinator Coordinator // Operaror bidder information
Amount *big.Int
SlotNum SlotNum // Slot in which the bid is done
Coordinator // Coordinator bidder information
BidValue *big.Int
EthBlockNum uint64
Won bool // boolean flag that tells that this is the final winning bid of this SlotNum
}