-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsnapshot_types.go
71 lines (58 loc) · 1.55 KB
/
snapshot_types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package silkworm_go
import "unsafe"
var NewFilePath = NewCString
type MemoryMappedFile struct {
FilePath *CString
DataHandle unsafe.Pointer
Size int64
}
type HeadersSnapshot struct {
Segment MemoryMappedFile
HeaderHashIndex MemoryMappedFile
}
type BodiesSnapshot struct {
Segment MemoryMappedFile
BlockNumIndex MemoryMappedFile
}
type TransactionsSnapshot struct {
Segment MemoryMappedFile
TxnHashIndex MemoryMappedFile
TxnHash2BlockIndex MemoryMappedFile
}
type BlocksSnapshotBundle struct {
Headers HeadersSnapshot
Bodies BodiesSnapshot
Transactions TransactionsSnapshot
}
type InvertedIndexSnapshot struct {
Segment MemoryMappedFile // .ef
AccessorIndex MemoryMappedFile // .efi
}
type HistorySnapshot struct {
Segment MemoryMappedFile // .v
AccessorIndex MemoryMappedFile // .vi
InvertedIndex InvertedIndexSnapshot
}
type DomainSnapshot struct {
Segment MemoryMappedFile // .kv
ExistenceIndex MemoryMappedFile // .kvei
BTreeIndex MemoryMappedFile // .bt
AccessorIndex *MemoryMappedFile // .kvi
}
type StateSnapshotBundleLatest struct {
Accounts DomainSnapshot
Storage DomainSnapshot
Code DomainSnapshot
Commitment DomainSnapshot
Receipts DomainSnapshot
}
type StateSnapshotBundleHistorical struct {
Accounts HistorySnapshot
Storage HistorySnapshot
Code HistorySnapshot
Receipts HistorySnapshot
LogAddresses InvertedIndexSnapshot
LogTopics InvertedIndexSnapshot
TracesFrom InvertedIndexSnapshot
TracesTo InvertedIndexSnapshot
}