MCPcopy
hub / github.com/canopy-network/canopy / NewTxn

Method NewTxn

lib/store.go:15–15  ·  view source on GitHub ↗

reading and writing indexer

()

Source from the content-addressed store, hash-verified

13 ProveStoreI // proving membership / non-membership
14 RWIndexerI // reading and writing indexer
15 NewTxn() StoreI // wrap the store in a discardable nested store
16 Root() ([]byte, ErrorI) // get the merkle root from the store
17 DB() *pebble.DB // retrieve the underlying pebble db
18 Version() uint64 // access the height of the store

Callers 2

TestDoublyNestedTxnFunction · 0.65
TxnWrapMethod · 0.65

Implementers 1

Storestore/store.go

Calls

no outgoing calls

Tested by 1

TestDoublyNestedTxnFunction · 0.52