mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-06 19:06:42 +01:00
Add PoolL2Tx.Info about the status of the tx
PoolL2Tx.Info contains information about the status & State of the transaction. As for example, if the Tx has not been selected in the last batch due not enough Balance at the Sender account, this reason would appear at this parameter. This will help the client (wallet, batchexplorer, etc) to reason why a L2Tx is not selected in the forged batches.
This commit is contained in:
@@ -23,7 +23,7 @@ type L2Tx struct {
|
||||
// Nonce is filled by the TxProcessor
|
||||
Nonce Nonce `meddler:"nonce"`
|
||||
Type TxType `meddler:"type"`
|
||||
EthBlockNum int64 `meddler:"eth_block_num"` // Ethereum Block Number in which this L2Tx was added to the queue
|
||||
EthBlockNum int64 `meddler:"eth_block_num"` // EthereumBlockNumber in which this L2Tx was added to the queue
|
||||
}
|
||||
|
||||
// NewL2Tx returns the given L2Tx with the TxId & Type parameters calculated
|
||||
|
||||
@@ -40,6 +40,11 @@ type PoolL2Tx struct {
|
||||
Fee FeeSelector `meddler:"fee"`
|
||||
Nonce Nonce `meddler:"nonce"` // effective 40 bits used
|
||||
State PoolL2TxState `meddler:"state"`
|
||||
// Info contains information about the status & State of the
|
||||
// transaction. As for example, if the Tx has not been selected in the
|
||||
// last batch due not enough Balance at the Sender account, this reason
|
||||
// would appear at this parameter.
|
||||
Info string `meddler:"info,zeroisnull"`
|
||||
Signature babyjub.SignatureComp `meddler:"signature"` // tx signature
|
||||
Timestamp time.Time `meddler:"timestamp,utctime"` // time when added to the tx pool
|
||||
// Stored in DB: optional fileds, may be uninitialized
|
||||
|
||||
Reference in New Issue
Block a user