Initial dract of the common structs

This commit is contained in:
a_bennassar
2020-07-24 13:04:17 +02:00
parent ecf731982e
commit b9936f8564
16 changed files with 310 additions and 5 deletions

12
common/l2tx.go Normal file
View File

@@ -0,0 +1,12 @@
package common
import (
"time"
)
// L2Tx is a struct that represents an already forged L2 tx
type L2Tx struct {
Tx
Forged time.Time // time when received by the tx pool
BatchNum BatchNum // Batch in which the tx was forged, 0 means not forged
}