mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 11:26:44 +01:00
Update to follow DB spec
This commit is contained in:
@@ -1,12 +1,28 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
"math/big"
|
||||
)
|
||||
|
||||
// Slot represents a slot of the Hermez network
|
||||
// WARNING: this is strongly based on the previous implementation, once the new spec is done, this may change a lot.
|
||||
type Slot struct {
|
||||
SlotNum SlotNum
|
||||
StartingBlock uint64 // Etherum block in which the slot starts
|
||||
StartingBlock uint64 // Ethereum block in which the slot starts
|
||||
Forger Coordinator // Current Operaror winner information
|
||||
}
|
||||
|
||||
// SlotMinPrice is the policy of minimum prices for strt bidding in the slots
|
||||
type SlotMinPrice struct {
|
||||
EthBlockNum uint64 // Etherum block in which the min price was updated
|
||||
MinPrices [6]big.Int
|
||||
}
|
||||
|
||||
// GetMinPrice returns the minimum bid to enter the auction for a specific slot
|
||||
func (smp *SlotMinPrice) GetMinPrice(slotNum SlotNum) *big.Int {
|
||||
// TODO
|
||||
return nil
|
||||
}
|
||||
|
||||
// SlotNum identifies a slot
|
||||
type SlotNum uint32
|
||||
|
||||
Reference in New Issue
Block a user