Add chronicles formatters for aristo db types (#1889)
This commit is contained in:
parent
6e0397e276
commit
bb88b50298
|
@ -1,3 +1,10 @@
|
||||||
|
# Nimbus
|
||||||
|
# Copyright (c) 2021-2023 Status Research & Development GmbH
|
||||||
|
# Licensed and distributed under either of
|
||||||
|
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
|
||||||
|
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
|
||||||
|
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
||||||
|
|
||||||
name: fluffy CI
|
name: fluffy CI
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -8,6 +15,7 @@ on:
|
||||||
- '!fluffy/docs/**'
|
- '!fluffy/docs/**'
|
||||||
- 'nimbus/rpc/hexstrings.nim'
|
- 'nimbus/rpc/hexstrings.nim'
|
||||||
- 'nimbus/rpc/rpc_*.nim'
|
- 'nimbus/rpc/rpc_*.nim'
|
||||||
|
- 'nimbus/db/**'
|
||||||
- 'vendor/**'
|
- 'vendor/**'
|
||||||
- 'Makefile'
|
- 'Makefile'
|
||||||
- 'nimbus.nimble'
|
- 'nimbus.nimble'
|
||||||
|
@ -20,6 +28,7 @@ on:
|
||||||
- '!fluffy/docs/**'
|
- '!fluffy/docs/**'
|
||||||
- 'nimbus/rpc/hexstrings.nim'
|
- 'nimbus/rpc/hexstrings.nim'
|
||||||
- 'nimbus/rpc/rpc_*.nim'
|
- 'nimbus/rpc/rpc_*.nim'
|
||||||
|
- 'nimbus/db/**'
|
||||||
- 'vendor/**'
|
- 'vendor/**'
|
||||||
- 'Makefile'
|
- 'Makefile'
|
||||||
- 'nimbus.nimble'
|
- 'nimbus.nimble'
|
||||||
|
|
|
@ -18,6 +18,7 @@ import
|
||||||
std/[sequtils, strutils, hashes],
|
std/[sequtils, strutils, hashes],
|
||||||
eth/[common, trie/nibbles],
|
eth/[common, trie/nibbles],
|
||||||
stew/byteutils,
|
stew/byteutils,
|
||||||
|
chronicles,
|
||||||
results,
|
results,
|
||||||
stint
|
stint
|
||||||
|
|
||||||
|
@ -97,6 +98,13 @@ type
|
||||||
root*: VertexID ## Root ID for the sub-trie.
|
root*: VertexID ## Root ID for the sub-trie.
|
||||||
key*: HashKey ## Merkle hash or encoded small node data
|
key*: HashKey ## Merkle hash or encoded small node data
|
||||||
|
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# Chronicles formatters
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
chronicles.formatIt(VertexID): $it
|
||||||
|
chronicles.formatIt(QueueID): $it
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Private helpers
|
# Private helpers
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue