1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-18 04:40:03 +02:00

Merge branch 'table-deltas'

This commit is contained in:
Henrik Hautakoski 2024-01-21 14:01:08 +01:00
commit 0b3b383977
4 changed files with 102 additions and 0 deletions

View file

@ -85,3 +85,16 @@ type RollbackMessage struct {
OldBlockNum uint32 `json:"old_block" msgpack:"old_block"`
NewBlockNum uint32 `json:"new_block" msgpack:"new_block"`
}
type TableDeltaRow struct {
Present bool `json:"present" msgpack:"present"`
Data map[string]any `json:"data" msgpack:"data"`
RawData []byte `json:"raw_data" msgpack:"raw_data"`
}
type TableDelta struct {
BlockNum uint32 `json:"blocknum" msgpack:"blocknum"`
Timestamp time.Time `json:"blocktimestamp" msgpack:"blocktimestamp"`
Name string `json:"name" msgpack:"name"`
Rows []TableDeltaRow `json:"rows" msgpack:"rows"`
}