Skip to content

Commit

Permalink
add interface for MerkleDB (ava-labs#1519)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Laine authored May 23, 2023
1 parent 14b8c98 commit 581a673
Show file tree
Hide file tree
Showing 16 changed files with 753 additions and 253 deletions.
3 changes: 2 additions & 1 deletion scripts/mocks.mockgen.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@ github.com/ava-labs/avalanchego/vms/registry=VMGetter=vms/registry/mock_vm_gette
github.com/ava-labs/avalanchego/vms/registry=VMRegisterer=vms/registry/mock_vm_registerer.go
github.com/ava-labs/avalanchego/vms/registry=VMRegistry=vms/registry/mock_vm_registry.go
github.com/ava-labs/avalanchego/vms=Factory,Manager=vms/mock_manager.go
github.com/ava-labs/avalanchego/x/sync=Client=x/sync/mock_client.go
github.com/ava-labs/avalanchego/x/merkledb=MerkleDB=x/merkledb/mock_db.go
github.com/ava-labs/avalanchego/x/sync=Client=x/sync/mock_client.go
2 changes: 1 addition & 1 deletion x/merkledb/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var _ database.Batch = (*batch)(nil)
type batch struct {
database.BatchOps

db *Database
db *merkleDB
}

// apply all operations in order to the database and write the result to disk
Expand Down
Loading

0 comments on commit 581a673

Please sign in to comment.