Update BatchBuilder & TxSelector to new StateDB

This commit is contained in:
arnaucube
2020-08-17 11:39:51 +02:00
parent 205db8e4d3
commit aa003063f6
7 changed files with 81 additions and 31 deletions

View File

@@ -35,8 +35,8 @@ type TxSelector struct {
}
// NewTxSelector returns a *TxSelector
func NewTxSelector(synchronizerStateDB *statedb.StateDB, l2 *l2db.L2DB, maxL1UserTxs, maxL1OperatorTxs, maxTxs uint64) (*TxSelector, error) {
localAccountsDB, err := statedb.NewLocalStateDB(synchronizerStateDB, false, 0) // without merkletree
func NewTxSelector(dbpath string, synchronizerStateDB *statedb.StateDB, l2 *l2db.L2DB, maxL1UserTxs, maxL1OperatorTxs, maxTxs uint64) (*TxSelector, error) {
localAccountsDB, err := statedb.NewLocalStateDB(dbpath, synchronizerStateDB, false, 0) // without merkletree
if err != nil {
return nil, err
}