mirror of
https://github.com/logos-blockchain/logos-blockchain-block-explorer-template.git
synced 2026-07-03 05:39:27 +00:00
The chain contains op types the explorer has no serializer for (e.g. ChannelSetKeys, opcode 16), and a single such transaction aborted the entire backfill. Same approach as #19, adapted to the current tx format: unrecognized opcodes and proof variants (e.g. the NoProof unit variant) fall back to an UnknownOp/UnknownSignature pair that preserves the raw data verbatim. Typed support can be added incrementally; known ops keep their strict proof-type checks. Also adds a typed ChannelSetKeys serializer (opcode 16), shaped from a real op captured on the chain (fixture included) — its DB model already existed, but with List[bytes] keys, which break the JSON column's utf-8 encoding; changed to HexBytes like every other byte field.
78 lines
1.1 KiB
JSON
78 lines
1.1 KiB
JSON
{
|
|
"16": {
|
|
"payload": {
|
|
"channel": "d894b6a35644bcb53d9a31be31485b68257368c1d1ee1a0f4a82d85ec63208a5",
|
|
"keys": [
|
|
"695c36dc795b084122f596fa7d6abbf35f0f8772d47f01c7ebc294bc0a9d0f8d"
|
|
]
|
|
},
|
|
"proof": {
|
|
"Ed25519Sig": [
|
|
38,
|
|
229,
|
|
5,
|
|
199,
|
|
203,
|
|
222,
|
|
82,
|
|
178,
|
|
147,
|
|
99,
|
|
199,
|
|
230,
|
|
185,
|
|
102,
|
|
143,
|
|
138,
|
|
88,
|
|
159,
|
|
171,
|
|
28,
|
|
17,
|
|
21,
|
|
8,
|
|
131,
|
|
137,
|
|
164,
|
|
233,
|
|
118,
|
|
100,
|
|
21,
|
|
214,
|
|
227,
|
|
82,
|
|
10,
|
|
71,
|
|
170,
|
|
26,
|
|
50,
|
|
120,
|
|
127,
|
|
230,
|
|
209,
|
|
122,
|
|
65,
|
|
106,
|
|
95,
|
|
138,
|
|
50,
|
|
181,
|
|
121,
|
|
87,
|
|
48,
|
|
57,
|
|
71,
|
|
41,
|
|
0,
|
|
195,
|
|
122,
|
|
165,
|
|
126,
|
|
104,
|
|
137,
|
|
25,
|
|
0
|
|
]
|
|
}
|
|
}
|
|
} |