Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deroproject/graviton
/ functions
Functions
179 in github.com/deroproject/graviton
⨍
Functions
179
◇
Types & classes
13
↓ 1 callers
Method
commit
commit a single tree at a time
tree.go:159
↓ 1 callers
Function
decode
decode findex,fpos
tree.go:401
↓ 1 callers
Method
getRaw
Get a specific value associated with a specific key hash TODO, this api should not be exposed
tree.go:63
↓ 1 callers
Method
graph
(cnode node, w *bufio.Writer)
graph.go:27
↓ 1 callers
Method
insert
insert a node recursively till it gets inserted at the correct position
node_inner.go:120
↓ 1 callers
Method
random
(cnode node)
extra.go:18
↓ 1 callers
Function
setBit
these will enable processing of all bits collective from MSB to LSB
node.go:35
Method
Delete
delete a specific key from the tree
tree.go:79
Method
Delete
(store *Store, keyhash [HASHSIZE]byte)
node_test.go:38
Method
Get
(store *Store, keyhash [HASHSIZE]byte)
node_test.go:34
Method
GetKeyValue
(store *Store, keyhash [HASHSIZE]byte, valid_bit_count, used_bit_count int)
special.go:32
Method
GetKeyValueFromHash
we only have a keyhash and need to get both the key,value
special.go:22
Method
GetKeyValueFromKey
we have a key and need to get both the key,value
special.go:17
Method
GetName
()
extra.go:8
Method
GetVersion
Gets the snapshot version number
snapshot.go:108
Method
Graph
this function will export the tree to a dor graph file to understand any issues
graph.go:10
Method
Hash
(store *Store)
node_test.go:13
Method
KeyCountEstimate
estimate number of keys that exist in the tree very crude but only used for use display
extra.go:63
Method
MarshalTo
minimum size is 3 bytes
node_inner.go:320
Method
Position
()
node_test.go:26
Method
Position
()
node_leaf.go:75
Method
Position
()
node_inner.go:100
Method
Prove
(store *Store, keyhash [HASHSIZE]byte, proof *Proof)
node_test.go:42
Method
Prove
(store *Store, keyhash [HASHSIZE]byte, proof *Proof)
node_inner.go:285
Method
Put
(store *Store, keyhash [HASHSIZE]byte, value []byte)
node_test.go:30
Method
Random
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
Method
SpecialFirst
sets a root for the cursor, so the cursor visits only a specific prefix keys
special.go:84
Function
Sum
this file contains some functions ( to extend read-only api). these apis are used in the dero blockchain.
special.go:12
Function
TestArbitraryNonExistingGetsDeletes
(t *testing.T)
tree_test.go:141
Function
TestCommitDirty
makes sure only dirty trees are committed
tree_test.go:239
Function
TestCommitinner
(t *testing.T)
tree_test.go:465
Function
TestCommits
makes sure only dirty trees are committed
tree_test.go:263
Function
TestCommits_rarecase
a rare case is tested
tree_test.go:292
Function
TestCorruptionStore_Left
(t *testing.T)
corruption_test.go:79
Function
TestCorruptionStore_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
Function
TestCursor
this test various cursor related code
cursor_test.go:19
Function
TestCursor1
this test various cursor related code
cursor_test.go:44
Function
TestCursor_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
Function
TestDiffTree
this test various diffing related code
diff_tree_test.go:20
Function
TestDiffTree_Single_Key
this test various cursor diff related code
diff_tree_test.go:163
Function
TestDiffTree_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
Function
TestDiscard
(t *testing.T)
tree_test.go:209
Function
TestGetTreeHighestVersion
(t *testing.T)
snapshot_test.go:115
Function
TestHashPanic
(t *testing.T)
node_leaf_test.go:8
Function
TestInnerCoverage
(t *testing.T)
node_inner_test.go:113
Function
TestInnerUnMarshal
(t *testing.T)
node_inner_test.go:8
Function
TestIsOnlyChildleafPanic
(t *testing.T)
node_inner_test.go:28
Function
TestLoadSnapshot
* func TestIwriteVersionData(t *testing.T) { store, err := NewMemStore() require.NoError(t, err) store.versionrootfile.Close() require.Error(t, st
snapshot_test.go:159
Function
TestLoadfullleaffromstore
(t *testing.T)
node_leaf_test.go:20
Function
TestLoadinnerfromstore
(t *testing.T)
node_inner_test.go:46
Function
TestMultiCommits
(t *testing.T)
tree_test.go:489
Function
TestPersistantStore
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
Function
TestPersistantStore_Empty
(t *testing.T)
store_test.go:310
Function
TestPersistantStore_fail
(t *testing.T)
store_test.go:110
Function
TestProofMarshal
(t *testing.T)
proof_test.go:154
Function
TestProveAfterDelete
(t *testing.T)
proof_test.go:181
Function
TestProveCollision
these cannot be generated using exported api
proof_test.go:69
Function
TestProveDeadend
(t *testing.T)
proof_test.go:97
Function
TestSnapshotDAG
this tests the version tree dag this loading of versions and whether they can be accessed and then moved forward
snapshot_test.go:17
Function
TestSnapshotGets
(t *testing.T)
tree_test.go:324
Function
TestSnapshotGetsDeletes
(t *testing.T)
tree_test.go:422
Function
TestSnapshotMultiGets
(t *testing.T)
tree_test.go:361
Function
TestTreeMaxValueSize
* 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
Function
TestTreeNameLimit
this tests various treename entry points
snapshot_test.go:92
Function
TestTreeProve
(t *testing.T)
proof_test.go:11
Function
TestTreeProvePersistent
(t *testing.T)
proof_test.go:44
Function
TestTreePutGetDelete
(t *testing.T)
tree_test.go:98
Function
TestTreeVersionLabelRootHash
(t *testing.T)
tree_test.go:156
Function
TestUnknownNodePanic
(t *testing.T)
node_test.go:46
Function
init
()
hash.go:22
Method
isDirty
()
node_test.go:18
Method
isDirty
()
node_leaf.go:72
Method
isDirty
()
node_inner.go:40
Method
load_partial
(store *Store)
node_test.go:22
Method
load_partial
(store *Store)
node_leaf.go:121
Function
main
()
cmd/stress/stress.go:28
Function
main
()
examples/snapshot_example/snapshot_example.go:10
Function
main
()
examples/data_corruption_showcase/data_corruption_showcase.go:22
Function
main
()
examples/key_value_example/keyvalue_example.go:6
← previous
101–179 of 179, ranked by callers