StateDB group Fee txs and ZKInputs gen of Fee txs

This commit is contained in:
arnaucube
2020-11-06 16:28:57 +01:00
parent fac8577bad
commit 900494fd8e
4 changed files with 149 additions and 78 deletions

View File

@@ -107,7 +107,7 @@ func L2TxsToPoolL2Txs(txs []L2Tx) []PoolL2Tx {
func (tx *L2Tx) Bytes(nLevels int) ([]byte, error) {
idxLen := nLevels / 8 //nolint:gomnd
b := make([]byte, ((nLevels*2)+16+8)/8)
b := make([]byte, ((nLevels*2)+16+8)/8) //nolint:gomnd
fromIdxBytes, err := tx.FromIdx.Bytes()
if err != nil {