Add TxSelector L2Tx filtering logic

This commit is contained in:
arnaucube
2020-09-22 11:47:43 +02:00
parent 297a8e38d8
commit 5d6f8cd3ec
3 changed files with 120 additions and 32 deletions

View File

@@ -32,6 +32,13 @@ const (
IdxUserThreshold = Idx(userThreshold)
)
var (
// FFAddr is used to check if an ethereum address is 0xff..ff
FFAddr = ethCommon.HexToAddress("0xffffffffffffffffffffffffffffffffffffffff")
// EmptyAddr is used to check if an ethereum address is 0
EmptyAddr = ethCommon.HexToAddress("0x0000000000000000000000000000000000000000")
)
// Idx represents the account Index in the MerkleTree
type Idx uint32