mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 03:16:45 +01:00
Merge pull request #301 from hermeznetwork/feature/integration19
Update coordinator, call all api update functions
This commit is contained in:
@@ -33,7 +33,10 @@ type Slot struct {
|
||||
BatchesLen int
|
||||
BidValue *big.Int
|
||||
BootCoord bool
|
||||
Bidder ethCommon.Address
|
||||
Forger ethCommon.Address
|
||||
URL string
|
||||
// Bidder, Forer and URL correspond to the winner of the slot (which is
|
||||
// not always the highest bidder). These are the values of the
|
||||
// coordinator that is able to forge exclusively before the deadline.
|
||||
Bidder ethCommon.Address
|
||||
Forger ethCommon.Address
|
||||
URL string
|
||||
}
|
||||
|
||||
@@ -9,10 +9,10 @@ import (
|
||||
|
||||
// Block represents of an Ethereum block
|
||||
type Block struct {
|
||||
EthBlockNum int64 `meddler:"eth_block_num"`
|
||||
Timestamp time.Time `meddler:"timestamp,utctime"`
|
||||
Hash ethCommon.Hash `meddler:"hash"`
|
||||
ParentHash ethCommon.Hash `meddler:"-"`
|
||||
Num int64 `meddler:"eth_block_num"`
|
||||
Timestamp time.Time `meddler:"timestamp,utctime"`
|
||||
Hash ethCommon.Hash `meddler:"hash"`
|
||||
ParentHash ethCommon.Hash `meddler:"-" json:"-"`
|
||||
}
|
||||
|
||||
// RollupData contains information returned by the Rollup smart contract
|
||||
@@ -63,9 +63,10 @@ type WDelayerTransfer struct {
|
||||
|
||||
// WDelayerData contains information returned by the WDelayer smart contract
|
||||
type WDelayerData struct {
|
||||
Vars *WDelayerVariables
|
||||
Deposits []WDelayerTransfer
|
||||
DepositsByTxHash map[ethCommon.Hash]*WDelayerTransfer
|
||||
Vars *WDelayerVariables
|
||||
Deposits []WDelayerTransfer
|
||||
// We use an array because there can be multiple deposits in a single eth transaction
|
||||
DepositsByTxHash map[ethCommon.Hash][]*WDelayerTransfer
|
||||
Withdrawals []WDelayerTransfer
|
||||
}
|
||||
|
||||
@@ -74,7 +75,7 @@ func NewWDelayerData() WDelayerData {
|
||||
return WDelayerData{
|
||||
Vars: nil,
|
||||
Deposits: make([]WDelayerTransfer, 0),
|
||||
DepositsByTxHash: make(map[ethCommon.Hash]*WDelayerTransfer),
|
||||
DepositsByTxHash: make(map[ethCommon.Hash][]*WDelayerTransfer),
|
||||
Withdrawals: make([]WDelayerTransfer, 0),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user