mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 11:26:44 +01:00
Add TxID calculation & New{Layer}Tx Type
Add TxID calculation & New{Layer}Tx Type
New{Layer}Tx methods that compute the `TxID` & `TxType` values from the
transaction values:
- NewL1Tx
- NewL2Tx
- NewPoolL2Tx
Add TxID Scanner & Valuer for database/sql
HistoryDB & L2DB & API packages tests will need to be addapted to the
TestTransaction generation once is done.
This commit is contained in:
@@ -185,7 +185,7 @@ func (s *StateDB) Reset(batchNum common.BatchNum) error {
|
||||
return err
|
||||
}
|
||||
s.db = sto
|
||||
s.idx = 0
|
||||
s.idx = 255
|
||||
s.currentBatch = batchNum
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user