MCPcopy Create free account

hub / github.com/deroproject/graviton / functions

Functions179 in github.com/deroproject/graviton

↓ 1 callersMethodcommit
commit a single tree at a time
tree.go:159
↓ 1 callersFunctiondecode
decode findex,fpos
tree.go:401
↓ 1 callersMethodgetRaw
Get a specific value associated with a specific key hash TODO, this api should not be exposed
tree.go:63
↓ 1 callersMethodgraph
(cnode node, w *bufio.Writer)
graph.go:27
↓ 1 callersMethodinsert
insert a node recursively till it gets inserted at the correct position
node_inner.go:120
↓ 1 callersMethodrandom
(cnode node)
extra.go:18
↓ 1 callersFunctionsetBit
these will enable processing of all bits collective from MSB to LSB
node.go:35
MethodDelete
delete a specific key from the tree
tree.go:79
MethodDelete
(store *Store, keyhash [HASHSIZE]byte)
node_test.go:38
MethodGet
(store *Store, keyhash [HASHSIZE]byte)
node_test.go:34
MethodGetKeyValue
(store *Store, keyhash [HASHSIZE]byte, valid_bit_count, used_bit_count int)
special.go:32
MethodGetKeyValueFromHash
we only have a keyhash and need to get both the key,value
special.go:22
MethodGetKeyValueFromKey
we have a key and need to get both the key,value
special.go:17
MethodGetName
()
extra.go:8
MethodGetVersion
Gets the snapshot version number
snapshot.go:108
MethodGraph
this function will export the tree to a dor graph file to understand any issues
graph.go:10
MethodHash
(store *Store)
node_test.go:13
MethodKeyCountEstimate
estimate number of keys that exist in the tree very crude but only used for use display
extra.go:63
MethodMarshalTo
minimum size is 3 bytes
node_inner.go:320
MethodPosition
()
node_test.go:26
MethodPosition
()
node_leaf.go:75
MethodPosition
()
node_inner.go:100
MethodProve
(store *Store, keyhash [HASHSIZE]byte, proof *Proof)
node_test.go:42
MethodProve
(store *Store, keyhash [HASHSIZE]byte, proof *Proof)
node_inner.go:285
MethodPut
(store *Store, keyhash [HASHSIZE]byte, value []byte)
node_test.go:30
MethodRandom
Random returns a random key,value from the tree, provided a tree has keys the following are limitations a tree containing 0 key, value pairs will retu
extra.go:15
MethodSpecialFirst
sets a root for the cursor, so the cursor visits only a specific prefix keys
special.go:84
FunctionSum
this file contains some functions ( to extend read-only api). these apis are used in the dero blockchain.
special.go:12
FunctionTestArbitraryNonExistingGetsDeletes
(t *testing.T)
tree_test.go:141
FunctionTestCommitDirty
makes sure only dirty trees are committed
tree_test.go:239
FunctionTestCommitinner
(t *testing.T)
tree_test.go:465
FunctionTestCommits
makes sure only dirty trees are committed
tree_test.go:263
FunctionTestCommits_rarecase
a rare case is tested
tree_test.go:292
FunctionTestCorruptionStore_Left
(t *testing.T)
corruption_test.go:79
FunctionTestCorruptionStore_basic
this creates a persistant store in tmp dir then commits and does a number of tests the closes the store and reopens and does all the tests again
corruption_test.go:16
FunctionTestCursor
this test various cursor related code
cursor_test.go:19
FunctionTestCursor1
this test various cursor related code
cursor_test.go:44
FunctionTestCursor_error_case
this test various cursor related code this test uses hard coded values based on hash, chnaging the hash will cause this test to fails NOTE: this test
cursor_test.go:122
FunctionTestDiffTree
this test various diffing related code
diff_tree_test.go:20
FunctionTestDiffTree_Single_Key
this test various cursor diff related code
diff_tree_test.go:163
FunctionTestDiffTree_Single_Key_error_cases
this test various diff related codes tree needs to be a particuar case, as some paths are hardcoded and manually triggered
diff_tree_test.go:238
FunctionTestDiscard
(t *testing.T)
tree_test.go:209
FunctionTestGetTreeHighestVersion
(t *testing.T)
snapshot_test.go:115
FunctionTestHashPanic
(t *testing.T)
node_leaf_test.go:8
FunctionTestInnerCoverage
(t *testing.T)
node_inner_test.go:113
FunctionTestInnerUnMarshal
(t *testing.T)
node_inner_test.go:8
FunctionTestIsOnlyChildleafPanic
(t *testing.T)
node_inner_test.go:28
FunctionTestLoadSnapshot
* func TestIwriteVersionData(t *testing.T) { store, err := NewMemStore() require.NoError(t, err) store.versionrootfile.Close() require.Error(t, st
snapshot_test.go:159
FunctionTestLoadfullleaffromstore
(t *testing.T)
node_leaf_test.go:20
FunctionTestLoadinnerfromstore
(t *testing.T)
node_inner_test.go:46
FunctionTestMultiCommits
(t *testing.T)
tree_test.go:489
FunctionTestPersistantStore
this creates a persistant store in tmp dir then commits and does a number of tests the closes the store and reopens and does all the tests again
store_test.go:20
FunctionTestPersistantStore_Empty
(t *testing.T)
store_test.go:310
FunctionTestPersistantStore_fail
(t *testing.T)
store_test.go:110
FunctionTestProofMarshal
(t *testing.T)
proof_test.go:154
FunctionTestProveAfterDelete
(t *testing.T)
proof_test.go:181
FunctionTestProveCollision
these cannot be generated using exported api
proof_test.go:69
FunctionTestProveDeadend
(t *testing.T)
proof_test.go:97
FunctionTestSnapshotDAG
this tests the version tree dag this loading of versions and whether they can be accessed and then moved forward
snapshot_test.go:17
FunctionTestSnapshotGets
(t *testing.T)
tree_test.go:324
FunctionTestSnapshotGetsDeletes
(t *testing.T)
tree_test.go:422
FunctionTestSnapshotMultiGets
(t *testing.T)
tree_test.go:361
FunctionTestTreeMaxValueSize
* func (in *inner) clean_hash(store *Store) { //marks an entire tree as dirty, inclusing leaves, causes to load entiire tree to ram if in.loaded_par
tree_test.go:82
FunctionTestTreeNameLimit
this tests various treename entry points
snapshot_test.go:92
FunctionTestTreeProve
(t *testing.T)
proof_test.go:11
FunctionTestTreeProvePersistent
(t *testing.T)
proof_test.go:44
FunctionTestTreePutGetDelete
(t *testing.T)
tree_test.go:98
FunctionTestTreeVersionLabelRootHash
(t *testing.T)
tree_test.go:156
FunctionTestUnknownNodePanic
(t *testing.T)
node_test.go:46
Functioninit
()
hash.go:22
MethodisDirty
()
node_test.go:18
MethodisDirty
()
node_leaf.go:72
MethodisDirty
()
node_inner.go:40
Methodload_partial
(store *Store)
node_test.go:22
Methodload_partial
(store *Store)
node_leaf.go:121
Functionmain
()
cmd/stress/stress.go:28
Functionmain
()
examples/snapshot_example/snapshot_example.go:10
Functionmain
()
examples/data_corruption_showcase/data_corruption_showcase.go:22
Functionmain
()
examples/key_value_example/keyvalue_example.go:6
← previous101–179 of 179, ranked by callers