mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 03:16:45 +01:00
Update to follow DB spec
This commit is contained in:
@@ -7,14 +7,17 @@ import (
|
||||
"github.com/iden3/go-iden3-crypto/babyjub"
|
||||
)
|
||||
|
||||
// L1Tx is a struct that represents an already forged L1 tx
|
||||
// WARNING: this struct is very unclear and a complete guess
|
||||
// L1Tx is a struct that represents a L1 tx
|
||||
type L1Tx struct {
|
||||
Tx
|
||||
PublicKey babyjub.PublicKey
|
||||
LoadAmount *big.Int // amount transfered from L1 -> L2
|
||||
EthBlockNum uint64
|
||||
EthTxHash eth.Hash
|
||||
Position int // Position among all the L1Txs in that batch
|
||||
ToForgeL1TxsNumber uint32
|
||||
UserOrigin bool // true if the tx was originated by a user, false if it was aoriginated by a coordinator. Note that this differ from the spec for implementation simplification purpposes
|
||||
PublicKey babyjub.PublicKey
|
||||
LoadAmount *big.Int // amount transfered from L1 -> L2
|
||||
EthBlockNum uint64 // Ethereum Block Number in which this L1Tx was added to the queue
|
||||
EthTxHash eth.Hash // TxHash that added this L1Tx to the queue
|
||||
Position int // Position among all the L1Txs in that batch
|
||||
ToForgeL1TxsNum uint32 // toForgeL1TxsNum in which the tx was forged / will be forged
|
||||
FromBJJ babyjub.PublicKey
|
||||
CreateAccount bool // "from" + token ID is a new account
|
||||
FromEthAddr eth.Address
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user