Add StateDB ZKInputs generation for L1 & L2 Txs

This commit is contained in:
arnaucube
2020-09-09 14:40:55 +02:00
parent a7fe80f150
commit aa0bde61d2
7 changed files with 251 additions and 26 deletions

View File

@@ -43,6 +43,8 @@ type StateDB struct {
mt *merkletree.MerkleTree
// idx holds the current Idx that the BatchBuilder is using
idx common.Idx
zki *common.ZKInputs
i int // i is used for zki
}
// NewStateDB creates a new StateDB, allowing to use an in-memory or in-disk