Closed xlc closed 5 months ago
Thanks @xlc this looks like this particular issue is gone. I did encounter another weird issue though, I let you tell me whether it should be another issue. I configured both chopsticks and the indexer to start at block 22568290. This is what I did in the past and it worked well. Now the indexer does the following calls to Chopsticks, without error. As you can see on the first line, is start at the right block 22568290:
11:11:02 INFO sqd:processor processing blocks from 22568290
11:11:02 INFO sqd:processor using chain RPC data source
11:11:02 DEBUG sqd:processor:rpc rpc call
rpcUrl: ws://localhost:8000
rpcId: 1
rpcMethod: chain_getFinalizedHead
11:11:02 DEBUG sqd:processor:rpc rpc send
rpcUrl: ws://localhost:8000
rpcId: 1
11:11:02 DEBUG sqd:processor:rpc rpc response
rpcUrl: ws://localhost:8000
rpcId: 1
rpcMethod: chain_getFinalizedHead
rpcResponse: {"id":1,"jsonrpc":"2.0","result":"0xd1a4a66b79225bfde5c6065fa8932834de607ac040f9a9842e85794129840d5b"}
11:11:02 DEBUG sqd:processor:rpc rpc call
rpcUrl: ws://localhost:8000
rpcId: 2
rpcMethod: chain_getHeader
rpcParams: ["0xd1a4a66b79225bfde5c6065fa8932834de607ac040f9a9842e85794129840d5b"]
11:11:02 DEBUG sqd:processor:rpc rpc send
rpcUrl: ws://localhost:8000
rpcId: 2
11:11:02 DEBUG sqd:processor:rpc rpc response
rpcUrl: ws://localhost:8000
rpcId: 2
rpcMethod: chain_getHeader
rpcParams: ["0xd1a4a66b79225bfde5c6065fa8932834de607ac040f9a9842e85794129840d5b"]
rpcResponse: {"id":2,"jsonrpc":"2.0","result":{"parentHash":"0x88479bb55ea490a0debc42f8220ada66d7724dc9addf76536420daea3e697d7b","number":"0x01585d62","stateRoot":"0xdb73e32e4442a4b1515cb1a76b7c5ec3cdd063a5baa80d2d54e98c1daa757246","extrinsicsRoot":"0xfe59f4a6cc065974bbfd0a7c315b828abce857a19f15cc47357b324b14b2da65","digest":{"logs":["0x0642414245b50101360000001116021100000000903f23074294ead3d63efe78db56412e6a54b3650e3970707a4a2aa243d1310e7194954a52f29b10e4e7c4f9594ef024fbc0a066c46567e9270598e195f6690216397d69fdadc9bdc010b051f2e717e88c99a217ca7fbfe9e3f390675c4ca803","0x04424545468403828dbe644a821f6becbdd74ce17c991fbcc81c351c80c4e5a87b81ab92e2fbad","0x054241424501018c0daaf1ea7ba60c9e6eecb466c0cfba1bffa421dd49f9064671c11538130550994f84ae490473c8d82abab84892331712fa776379d224fc3bfe9e22c3932383"]}}}
11:11:03 INFO sqd:processor prometheus metrics are served at port 33713
11:11:03 DEBUG sqd:processor:rpc rpc call
rpcUrl: ws://localhost:8000
rpcId: 3
rpcMethod: chain_getFinalizedHead
11:11:03 DEBUG sqd:processor:rpc rpc send
rpcUrl: ws://localhost:8000
rpcId: 3
11:11:03 DEBUG sqd:processor:rpc rpc response
rpcUrl: ws://localhost:8000
rpcId: 3
rpcMethod: chain_getFinalizedHead
rpcResponse: {"id":3,"jsonrpc":"2.0","result":"0xd1a4a66b79225bfde5c6065fa8932834de607ac040f9a9842e85794129840d5b"}
11:11:03 DEBUG sqd:processor:rpc rpc call
rpcUrl: ws://localhost:8000
rpcId: 4
rpcMethod: chain_getHeader
rpcParams: ["0xd1a4a66b79225bfde5c6065fa8932834de607ac040f9a9842e85794129840d5b"]
11:11:03 DEBUG sqd:processor:rpc rpc send
rpcUrl: ws://localhost:8000
rpcId: 4
11:11:03 DEBUG sqd:processor:rpc rpc response
rpcUrl: ws://localhost:8000
rpcId: 4
rpcMethod: chain_getHeader
rpcParams: ["0xd1a4a66b79225bfde5c6065fa8932834de607ac040f9a9842e85794129840d5b"]
rpcResponse: {"id":4,"jsonrpc":"2.0","result":{"parentHash":"0x88479bb55ea490a0debc42f8220ada66d7724dc9addf76536420daea3e697d7b","number":"0x01585d62","stateRoot":"0xdb73e32e4442a4b1515cb1a76b7c5ec3cdd063a5baa80d2d54e98c1daa757246","extrinsicsRoot":"0xfe59f4a6cc065974bbfd0a7c315b828abce857a19f15cc47357b324b14b2da65","digest":{"logs":["0x0642414245b50101360000001116021100000000903f23074294ead3d63efe78db56412e6a54b3650e3970707a4a2aa243d1310e7194954a52f29b10e4e7c4f9594ef024fbc0a066c46567e9270598e195f6690216397d69fdadc9bdc010b051f2e717e88c99a217ca7fbfe9e3f390675c4ca803","0x04424545468403828dbe644a821f6becbdd74ce17c991fbcc81c351c80c4e5a87b81ab92e2fbad","0x054241424501018c0daaf1ea7ba60c9e6eecb466c0cfba1bffa421dd49f9064671c11538130550994f84ae490473c8d82abab84892331712fa776379d224fc3bfe9e22c3932383"]}}}
11:11:03 DEBUG sqd:processor:rpc rpc call
rpcUrl: ws://localhost:8000
rpcId: 5
rpcMethod: chain_getBlockHash
rpcParams: ["0x1585d62"]
11:11:03 DEBUG sqd:processor:rpc rpc send
rpcUrl: ws://localhost:8000
rpcId: 5
11:11:03 DEBUG sqd:processor:rpc rpc response
rpcUrl: ws://localhost:8000
rpcId: 5
rpcMethod: chain_getBlockHash
rpcParams: ["0x1585d62"]
rpcResponse: {"id":5,"jsonrpc":"2.0","result":"0x6e7d988e2b0f4cdafd996913113d63ce3dc371a130ec4ed7d019b61ab64d44c3"}
11:11:03 DEBUG sqd:processor:rpc rpc call
rpcUrl: ws://localhost:8000
rpcId: 6
rpcMethod: chain_getBlock
rpcParams: ["0x6e7d988e2b0f4cdafd996913113d63ce3dc371a130ec4ed7d019b61ab64d44c3"]
11:11:03 DEBUG sqd:processor:rpc rpc send
rpcUrl: ws://localhost:8000
rpcId: 6
11:11:05 DEBUG sqd:processor:rpc rpc response
rpcUrl: ws://localhost:8000
rpcId: 6
rpcMethod: chain_getBlock
rpcParams: ["0x6e7d988e2b0f4cdafd996913113d63ce3dc371a130ec4ed7d019b61ab64d44c3"]
rpcResponse: {"id":6,"jsonrpc":"2.0","result":{"block":{"header":{"parentHash":"0xd44ca70138cb429b522eb8ef8cdd5df613e58402e664466bb1c1573fc92ccdfe","number":"0x015876ca","stateRoot":"0x70223b40f0887dc5773dcd379ce89ce3b081a2dbe2ae757ae0a66e2697260e8b","extrinsicsRoot":"0x1914ad6090be87dffb7ca7fbc97b93991ad8cdcffd41ad1522f61e4d722d2443","digest":{"logs":["0x0642414245b5010177020000862f0211000000006c5eaac36cbfb87de155203b22a8a904c220c2643ee3586da09b326d59e8c702681887e3b6aaa1fb66f1bd5d4108c861947c4b0976ee24e343eb3f2e6fc7bb0192055be7e26cf01d2fdc146330d681c966b019e3063ea19c1d5c313d487fa90f","0x04424545468403bfb9b7690359e8f9b3c5cc7b4abbce3beec8182cc8a8c9e5812b467588c25489","0x0542414245010144edf5269f9235befadf297e84ed0b2fff4e23547f423752659641ea61edf16871617509550ad6080c7b3d7d3027fd611104b5d14bb0d216ff88ea65c267458d"]}},"extrinsics":["0x280402000ba0d439a38e01","0xaafa0100043600a9049101dff0e78e1e27000000000000000 [redacted] bb520cf376722563fbf837b175085"]},"justifications":null}}
11:11:05 DEBUG sqd:processor:rpc rpc call
rpcUrl: ws://localhost:8000
rpcId: 7
rpcMethod: state_getStorageAt
rpcParams: ["0x26aa394eea5630e07c48ae0c9558cef780d41e5e16056765bc8461851072c9d7","0x6e7d988e2b0f4cdafd996913113d63ce3dc371a130ec4ed7d019b61ab64d44c3"]
11:11:05 DEBUG sqd:processor:rpc rpc call
rpcUrl: ws://localhost:8000
rpcId: 8
rpcMethod: state_getRuntimeVersion
rpcParams: ["0x6e7d988e2b0f4cdafd996913113d63ce3dc371a130ec4ed7d019b61ab64d44c3"]
11:11:05 DEBUG sqd:processor:rpc rpc send
rpcUrl: ws://localhost:8000
rpcId: 7
11:11:05 DEBUG sqd:processor:rpc rpc send
rpcUrl: ws://localhost:8000
rpcId: 8
11:11:05 DEBUG sqd:processor:rpc rpc response
rpcUrl: ws://localhost:8000
rpcId: 8
rpcMethod: state_getRuntimeVersion
rpcParams: ["0x6e7d988e2b0f4cdafd996913113d63ce3dc371a130ec4ed7d019b61ab64d44c3"]
rpcResponse: {"id":8,"jsonrpc":"2.0","result":{"specName":"kusama","implName":"parity-kusama","authoringVersion":2,"specVersion":1001003,"implVersion":0,"apis":[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",2],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",7],["0x49eaaf1b548a0cb0",3],["0x91d5df18b0d2cf58",2],["0x2a5e924655399e60",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",4],["0xf3ff14d5ab527059",3],["0x17a6bc0d0062aeb3",1],["0x18ef58a3b67ba770",1],["0xfbc577b9d747efd6",1]],"transactionVersion":25,"stateVersion":1}}
11:11:05 DEBUG sqd:processor:rpc rpc response
rpcUrl: ws://localhost:8000
rpcId: 7
rpcMethod: state_getStorageAt
rpcParams: ["0x26aa394eea5630e07c48ae0c9558cef780d41e5e16056765bc8461851072c9d7","0x6e7d988e2b0f4cdafd996913113d63ce3dc371a130ec4ed7d019b61ab64d44c3"]
rpcResponse: {"id":7,"jsonrpc":"2.0","result":"0xa40000000000000042b12043551702000000010000003501e8030000beaea1 [redacted] 91189cae6f647464742c89258bfa746c5e2f61885d07197ccf2b60fee49762d7a68726000000500000000000010000000000076a6922fecd7ef50100020000"}
11:11:05 DEBUG sqd:processor:rpc rpc call
rpcUrl: ws://localhost:8000
rpcId: 9
rpcMethod: chain_getHeader
rpcParams: ["0xd44ca70138cb429b522eb8ef8cdd5df613e58402e664466bb1c1573fc92ccdfe"]
11:11:05 DEBUG sqd:processor:rpc rpc send
rpcUrl: ws://localhost:8000
rpcId: 9
11:11:07 DEBUG sqd:processor:rpc rpc response
rpcUrl: ws://localhost:8000
rpcId: 9
rpcMethod: chain_getHeader
rpcParams: ["0xd44ca70138cb429b522eb8ef8cdd5df613e58402e664466bb1c1573fc92ccdfe"]
rpcResponse: {"id":9,"jsonrpc":"2.0","result":{"parentHash":"0xbeaea1e3cc2cabe4db6c4f4c109997166bb6a43aa554741658970b39406ef5aa","number":"0x015876c9","stateRoot":"0xd9cf52eaa7d6218a1d3779e3ed466c187da241bccce02de555688266521c2efb","extrinsicsRoot":"0xda173d37779e431f6df722b5dc29a533bafd2db7702c83ea78ea3a2d6179c4a5","digest":{"logs":["0x0642414245b501030d000000852f0211000000005ab998d14650d5cd9a76f53c3bcf2b06e7aeb0b2d37376e8bdab80cd6b4f53648e5bc7f0d15adcd031d64fa4f715ec450ffaaac378f31fbcfa4379edaf17ae0d44e3b4487023c36d084e7286e0bbe9e49ad650feccdef09ff7f34231f34d0a09","0x044245454684034291c27a7bd5c755d211e232f1172d3013fd2be3b88f5d7c3723431c2780da86","0x0542414245010108a14482d488c4a8969778abf9e8a17c2bd9338de9a3978bd08d153af5e4a3527254e2e92054b0ca785ec70868a43ba2b5bbb520cf376722563fbf837b175085"]}}}
11:11:07 DEBUG sqd:processor:rpc rpc call
rpcUrl: ws://localhost:8000
rpcId: 10
rpcMethod: state_getRuntimeVersion
rpcParams: ["0xbeaea1e3cc2cabe4db6c4f4c109997166bb6a43aa554741658970b39406ef5aa"]
11:11:07 DEBUG sqd:processor:rpc rpc call
rpcUrl: ws://localhost:8000
rpcId: 11
rpcMethod: state_getMetadata
rpcParams: ["0xbeaea1e3cc2cabe4db6c4f4c109997166bb6a43aa554741658970b39406ef5aa"]
11:11:07 DEBUG sqd:processor:rpc rpc send
rpcUrl: ws://localhost:8000
rpcId: 10
11:11:07 DEBUG sqd:processor:rpc rpc send
rpcUrl: ws://localhost:8000
rpcId: 11
11:11:09 DEBUG sqd:processor:rpc rpc response
rpcUrl: ws://localhost:8000
rpcId: 10
rpcMethod: state_getRuntimeVersion
rpcParams: ["0xbeaea1e3cc2cabe4db6c4f4c109997166bb6a43aa554741658970b39406ef5aa"]
rpcResponse: {"id":10,"jsonrpc":"2.0","result":{"specName":"kusama","implName":"parity-kusama","authoringVersion":2,"specVersion":1001003,"implVersion":0,"apis":[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",2],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",7],["0x49eaaf1b548a0cb0",3],["0x91d5df18b0d2cf58",2],["0x2a5e924655399e60",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",4],["0xf3ff14d5ab527059",3],["0x17a6bc0d0062aeb3",1],["0x18ef58a3b67ba770",1],["0xfbc577b9d747efd6",1]],"transactionVersion":25,"stateVersion":1}}
11:11:09 DEBUG sqd:processor:rpc rpc response
rpcUrl: ws://localhost:8000
rpcId: 11
rpcMethod: state_getMetadata
rpcParams: ["0xbeaea1e3cc2cabe4db6c4f4c109997166bb6a43aa554741658970b39406ef5aa"]
rpcResponse: {"id":11,"jsonrpc":"2.0","result":"0x6d6574610e350e000c1c73705f636f72651863727970746f2c41636 [redacted] 374696f6e5061796d656e742d0e8d01310e"}
11:11:10 INFO sqd:processor 22574794 / 22574794, rate: 893 blocks/sec, mapping: 50 blocks/sec, 50 items/sec, eta: 0s
as you can see from the last line, the indexer says it has indexed the latest kusama block 22574794
however, chopsticks shows nothing, and the head is supposed to be at 22568290
which is what I started chopsticks with.
yarn start --runtime-log-level 5 --config ./kusama.yml
[11:11:00.108] INFO: Kusama RPC listening on port 8000
app: "chopsticks"
This is confirmed if I push a tx, it creates a block as expected.
INFO (block-builder): Kusama building #22,568,291
app: "chopsticks"
number: 22568291
extrinsics: [
"0x91038400fa8e003cb5d22db1e8658e05…34d00c4f001e04000000000000000000"
]
umpCount: 0
However, it must have told the indexer that the head is elsewhere, at 22574794.
run with tracing enabled to see what's been requested and returned
it's just with RUST_LOG=trace
right?
RUST_LOG=trace yarn start --runtime-log-level 5 --config ./kusama.yml
Calling Metadata_metadata
Completed Metadata_metadata
[11:45:11.813] INFO: Kusama RPC listening on port 8000
app: "chopsticks"
Calling Metadata_metadata
Completed Metadata_metadata
Calling Metadata_metadata
Completed Metadata_metadata
Calling Metadata_metadata
Completed Metadata_metadata
Calling Metadata_metadata
Completed Metadata_metadata
LOG_LEVEL=trace
here you go
[11:53:07.649] DEBUG (plugin): Registered plugin CLI: decode-key
app: "chopsticks"
[11:53:07.693] DEBUG (plugin): Registered plugin CLI: dry-run
app: "chopsticks"
[11:53:07.704] DEBUG (plugin): Registered plugin CLI: follow-chain
app: "chopsticks"
[11:53:07.719] DEBUG (plugin): Registered plugin CLI: run-block
app: "chopsticks"
[11:53:07.726] DEBUG (plugin): Registered plugin CLI: try-runtime
app: "chopsticks"
[11:53:07.771] DEBUG: Setup options
app: "chopsticks"
endpoint: "wss://kusama.rpc.amforc.com"
block: 22568290
buildBlockMode: "Batch"
db: {
"datasource": {}
}
mockSignatureHost: true
runtimeLogLevel: 5
[11:53:08.009] DEBUG: Args
app: "chopsticks"
endpoint: "wss://kusama.rpc.amforc.com"
block: 22568290
buildBlockMode: "Batch"
db: {
"datasource": {}
}
mockSignatureHost: true
runtimeLogLevel: 5
blockHash: "0xd1a4a66b79225bfde5c6065fa8932834de607ac040f9a9842e85794129840d5b"
[11:53:08.099] TRACE (executor): taskRun
app: "chopsticks"
wasm: "0x52bc537646db8e0528b52ffd0058dcd1…325c0330e3953432296edfe533187f03"
calls: [
[
"Metadata_metadata",
[]
]
]
mockSignatureHost: true
allowUnresolvedImports: false
runtimeLogLevel: 5
[11:53:09.066] TRACE (executor): taskResponse
app: "chopsticks"
result: "0xb20113006d6574610e350e000c1c7370…696f6e5061796d656e742d0e8d01310e"
storageDiff: []
offchainStorageDiff: []
runtimeLogs: []
[11:53:09.674] TRACE: OverrideStorage
app: "chopsticks"
blockHash: "0xd1a4a66b79225bfde5c6065fa8932834de607ac040f9a9842e85794129840d5b"
storage: {
"System": {
"Account": [
[
[
"5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"
],
{
"providers": 1,
"data": {
"free": "10000000000000000000"
}
}
],
[
[
"JEqfw2FPda5eycsqqXN2Ay67eEh5R85aSHcArs3XdUYjj5H"
],
{
"providers": 1,
"data": {
"free": "10000000000000000000"
}
}
],
[
[
"JF3RaX21TrQuPrRbEV7i1iT5QXNQZBN6qvKx3iZN8CEN9bB"
],
{
"providers": 1,
"data": {
"free": "10000000000000000000"
}
}
],
[
[
"HxehWqUZGorCrahv3PiWWqdcFNBG9oQhZ2ft5VXueWaSBEs"
],
{
"providers": 1,
"data": {
"free": "10000000000000000000"
}
}
]
]
},
"FellowshipCollective": {
"$removePrefix": [
"IdToIndex",
"IndexToId",
"MemberCount",
"Members"
],
"IdToIndex": [
[
[
0,
"5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"
],
0
],
[
[
1,
"5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"
],
0
],
[
[
2,
"5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"
],
0
],
[
[
3,
"5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"
],
0
],
[
[
4,
"5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"
],
0
],
[
[
5,
"5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"
],
0
],
[
[
6,
"5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"
],
0
],
[
[
7,
"5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"
],
0
]
],
"IndexToId": [
[
[
0,
0
],
"5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"
],
[
[
1,
0
],
"5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"
],
[
[
2,
0
],
"5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"
],
[
[
3,
0
],
"5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"
],
[
[
4,
0
],
"5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"
],
[
[
5,
0
],
"5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"
],
[
[
6,
0
],
"5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"
],
[
[
7,
0
],
"5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"
]
],
"MemberCount": [
[
[
0
],
1
],
[
[
1
],
1
],
[
[
2
],
1
],
[
[
3
],
1
],
[
[
4
],
1
],
[
[
5
],
1
],
[
[
6
],
1
],
[
[
7
],
1
]
],
"Members": [
[
[
"5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"
],
{
"rank": 7
}
]
],
"Voting": []
},
"ParasDisputes": null
}
[11:53:09.676] DEBUG (ws): Try starting on port 8000
app: "chopsticks"
[11:53:09.720] INFO: Kusama RPC listening on port 8000
app: "chopsticks"
[11:53:40.595] DEBUG (ws): New connection
app: "chopsticks"
[11:53:40.600] TRACE (ws): Received single request
app: "chopsticks"
req: {
"id": 1,
"jsonrpc": "2.0",
"method": "chain_getFinalizedHead",
"params": []
}
[11:53:40.600] TRACE (ws): Received message
app: "chopsticks"
id: 1
method: "chain_getFinalizedHead"
[11:53:40.600] TRACE (rpc): Handling chain_getFinalizedHead
app: "chopsticks"
[11:53:40.601] TRACE (ws): Response for request
app: "chopsticks"
id: 1
method: "chain_getFinalizedHead"
result: "0xd1a4a66b79225bfde5c6065fa8932834de607ac040f9a9842e85794129840d5b"
[11:53:40.603] TRACE (ws): Received single request
app: "chopsticks"
req: {
"id": 2,
"jsonrpc": "2.0",
"method": "chain_getHeader",
"params": [
"0xd1a4a66b79225bfde5c6065fa8932834de607ac040f9a9842e85794129840d5b"
]
}
[11:53:40.603] TRACE (ws): Received message
app: "chopsticks"
id: 2
method: "chain_getHeader"
[11:53:40.603] TRACE (rpc): Handling chain_getHeader
app: "chopsticks"
[11:53:40.655] TRACE (ws): Response for request
app: "chopsticks"
id: 2
method: "chain_getHeader"
result: {
"parentHash": "0x88479bb55ea490a0debc42f8220ada66d7724dc9addf76536420daea3e697d7b",
"number": "0x01585d62",
"stateRoot": "0xdb73e32e4442a4b1515cb1a76b7c5ec3cdd063a5baa80d2d54e98c1daa757246",
"extrinsicsRoot": "0xfe59f4a6cc065974bbfd0a7c315b828abce857a19f15cc47357b324b14b2da65",
"digest": {
"logs": [
"0x0642414245b501013600000011160211…8c99a217ca7fbfe9e3f390675c4ca803",
"0x04424545468403828dbe644a821f6bec…bcc81c351c80c4e5a87b81ab92e2fbad",
"0x054241424501018c0daaf1ea7ba60c9e…12fa776379d224fc3bfe9e22c3932383"
]
}
}
[11:53:40.663] TRACE (ws): Received single request
app: "chopsticks"
req: {
"id": 3,
"jsonrpc": "2.0",
"method": "chain_getFinalizedHead",
"params": []
}
[11:53:40.663] TRACE (ws): Received message
app: "chopsticks"
id: 3
method: "chain_getFinalizedHead"
[11:53:40.663] TRACE (rpc): Handling chain_getFinalizedHead
app: "chopsticks"
[11:53:40.663] TRACE (ws): Response for request
app: "chopsticks"
id: 3
method: "chain_getFinalizedHead"
result: "0xd1a4a66b79225bfde5c6065fa8932834de607ac040f9a9842e85794129840d5b"
[11:53:40.665] TRACE (ws): Received single request
app: "chopsticks"
req: {
"id": 4,
"jsonrpc": "2.0",
"method": "chain_getHeader",
"params": [
"0xd1a4a66b79225bfde5c6065fa8932834de607ac040f9a9842e85794129840d5b"
]
}
[11:53:40.665] TRACE (ws): Received message
app: "chopsticks"
id: 4
method: "chain_getHeader"
[11:53:40.665] TRACE (rpc): Handling chain_getHeader
app: "chopsticks"
[11:53:40.666] TRACE (ws): Response for request
app: "chopsticks"
id: 4
method: "chain_getHeader"
result: {
"parentHash": "0x88479bb55ea490a0debc42f8220ada66d7724dc9addf76536420daea3e697d7b",
"number": "0x01585d62",
"stateRoot": "0xdb73e32e4442a4b1515cb1a76b7c5ec3cdd063a5baa80d2d54e98c1daa757246",
"extrinsicsRoot": "0xfe59f4a6cc065974bbfd0a7c315b828abce857a19f15cc47357b324b14b2da65",
"digest": {
"logs": [
"0x0642414245b501013600000011160211…8c99a217ca7fbfe9e3f390675c4ca803",
"0x04424545468403828dbe644a821f6bec…bcc81c351c80c4e5a87b81ab92e2fbad",
"0x054241424501018c0daaf1ea7ba60c9e…12fa776379d224fc3bfe9e22c3932383"
]
}
}
[11:53:40.668] TRACE (ws): Received single request
app: "chopsticks"
req: {
"id": 5,
"jsonrpc": "2.0",
"method": "chain_getBlockHash",
"params": [
"0x1585d62"
]
}
[11:53:40.668] TRACE (ws): Received message
app: "chopsticks"
id: 5
method: "chain_getBlockHash"
[11:53:40.668] TRACE (rpc): Handling chain_getBlockHash
app: "chopsticks"
[11:53:40.715] TRACE (ws): Response for request
app: "chopsticks"
id: 5
method: "chain_getBlockHash"
result: "0x00effb708eee400cb8a69aa5fc0f3809415eed03b81d1e785143fe9327c5c7cf"
[11:53:40.717] TRACE (ws): Received single request
app: "chopsticks"
req: {
"id": 6,
"jsonrpc": "2.0",
"method": "chain_getBlock",
"params": [
"0x00effb708eee400cb8a69aa5fc0f3809415eed03b81d1e785143fe9327c5c7cf"
]
}
[11:53:40.717] TRACE (ws): Received message
app: "chopsticks"
id: 6
method: "chain_getBlock"
[11:53:40.717] TRACE (rpc): Handling chain_getBlock
app: "chopsticks"
[11:53:40.719] TRACE (layer): RemoteStorageLayer get
app: "chopsticks"
at: "0x00effb708eee400cb8a69aa5fc0f3809415eed03b81d1e785143fe9327c5c7cf"
key: "0x3a636f6465"
[11:53:42.975] TRACE (executor): taskRun
app: "chopsticks"
wasm: "0x52bc537646db8e0528b52ffd0058dcd1…325c0330e3953432296edfe533187f03"
calls: [
[
"Metadata_metadata",
[]
]
]
mockSignatureHost: true
allowUnresolvedImports: false
runtimeLogLevel: 5
[11:53:43.283] TRACE (executor): taskResponse
app: "chopsticks"
result: "0xb20113006d6574610e350e000c1c7370…696f6e5061796d656e742d0e8d01310e"
storageDiff: []
offchainStorageDiff: []
runtimeLogs: []
[11:53:43.541] TRACE (ws): Response for request
app: "chopsticks"
id: 6
method: "chain_getBlock"
result: {
"block": {
"header": {
"parentHash": "0x69bb01ce5f77505c241caa9c30fb4bf41622d3f4efae6ce081b1090abc6c7d8c",
"number": "0x01587871",
"stateRoot": "0x18cd7a6d27de00f1372ca24301b10592906114c036a1db9e7ce938d60b71387b",
"extrinsicsRoot": "0xb8a14dffb4a829245a1a7daa3689b5740614f7036f43c98b6c9a1a1b7ba7ef89",
"digest": {
"logs": [
"0x0642414245b50103cf02000030310211…88ab72277521611a44fa5a0df3521f07",
"0x04424545468403da28cd440cbde14aac…d728e987565d05208066810f70bbb23c",
"0x05424142450101d2cab96db66752fbc6…cf5f20661e831edc5259bf041ee02683"
]
}
},
"extrinsics": [
"0x280402000b00d560a38e01",
"0x96e00100043600a5049101ff76dda44c…326754a09e5d8e8d698aeca94d77be8e",
"0x4d01040b0070785801d8940000740200…c25660560749561f0913205ec63c048a",
"0x4d01040b0070785801d8940000720200…69523e0cdf9e52891a87137278f19a8a",
"0x4d01040b0070785801d8940000ef0000…39400f5e15c43cc9aa064a39c0344d8f",
"0x4d01040b0070785801d89400008d0000…5db2c7697962bb005b638aef15408580",
"0x4d01040b0070785801d8940000b10000…9c53ffd7792562ddae62a235da5ffe88",
"0x4d01040b0070785801d8940000420200…9ef8c8eb7484e41d4ca63bd45074288b",
"0x4d01040b0070785801d8940000ab0000…fa4e9a1b9051231abda5f1515be65c8e",
"0x4d01040b0070785801d8940000d30000…1f71e99cb72f4a1bd916632d88646284",
"0x51028400443c0ba8f048601bd709b475…06e3ec0bfd9bd935bc0b00f03ba5f416"
]
},
"justifications": null
}
[11:53:43.543] TRACE (ws): Received single request
app: "chopsticks"
req: {
"id": 7,
"jsonrpc": "2.0",
"method": "state_getStorageAt",
"params": [
"0x26aa394eea5630e07c48ae0c9558cef780d41e5e16056765bc8461851072c9d7",
"0x00effb708eee400cb8a69aa5fc0f3809415eed03b81d1e785143fe9327c5c7cf"
]
}
[11:53:43.543] TRACE (ws): Received message
app: "chopsticks"
id: 7
method: "state_getStorageAt"
[11:53:43.544] TRACE (rpc): Handling state_getStorageAt
app: "chopsticks"
[11:53:43.545] TRACE (ws): Received single request
app: "chopsticks"
req: {
"id": 8,
"jsonrpc": "2.0",
"method": "state_getRuntimeVersion",
"params": [
"0x00effb708eee400cb8a69aa5fc0f3809415eed03b81d1e785143fe9327c5c7cf"
]
}
[11:53:43.545] TRACE (ws): Received message
app: "chopsticks"
id: 8
method: "state_getRuntimeVersion"
[11:53:43.545] TRACE (rpc): Handling state_getRuntimeVersion
app: "chopsticks"
[11:53:43.545] TRACE (ws): Response for request
app: "chopsticks"
id: 8
method: "state_getRuntimeVersion"
result: {
"specName": "kusama",
"implName": "parity-kusama",
"authoringVersion": 2,
"specVersion": 1001003,
"implVersion": 0,
"apis": [
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
7
],
[
"0x49eaaf1b548a0cb0",
3
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0x2a5e924655399e60",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xfbc577b9d747efd6",
1
]
],
"transactionVersion": 25,
"stateVersion": 1
}
[11:53:43.546] TRACE (layer): RemoteStorageLayer get
app: "chopsticks"
at: "0x00effb708eee400cb8a69aa5fc0f3809415eed03b81d1e785143fe9327c5c7cf"
key: "0x26aa394eea5630e07c48ae0c9558cef780d41e5e16056765bc8461851072c9d7"
[11:53:43.643] TRACE (ws): Response for request
app: "chopsticks"
id: 7
method: "state_getStorageAt"
result: "0xf40000000000000042b1204355170200…000a0000000000e2096b462538000000"
[11:53:43.646] TRACE (ws): Received single request
app: "chopsticks"
req: {
"id": 9,
"jsonrpc": "2.0",
"method": "chain_getHeader",
"params": [
"0x69bb01ce5f77505c241caa9c30fb4bf41622d3f4efae6ce081b1090abc6c7d8c"
]
}
[11:53:43.646] TRACE (ws): Received message
app: "chopsticks"
id: 9
method: "chain_getHeader"
[11:53:43.646] TRACE (rpc): Handling chain_getHeader
app: "chopsticks"
[11:53:43.695] TRACE (layer): RemoteStorageLayer get
app: "chopsticks"
at: "0x69bb01ce5f77505c241caa9c30fb4bf41622d3f4efae6ce081b1090abc6c7d8c"
key: "0x3a636f6465"
[11:53:46.306] TRACE (executor): taskRun
app: "chopsticks"
wasm: "0x52bc537646db8e0528b52ffd0058dcd1…325c0330e3953432296edfe533187f03"
calls: [
[
"Metadata_metadata",
[]
]
]
mockSignatureHost: true
allowUnresolvedImports: false
runtimeLogLevel: 5
[11:53:46.556] TRACE (executor): taskResponse
app: "chopsticks"
result: "0xb20113006d6574610e350e000c1c7370…696f6e5061796d656e742d0e8d01310e"
storageDiff: []
offchainStorageDiff: []
runtimeLogs: []
[11:53:46.581] TRACE (ws): Response for request
app: "chopsticks"
id: 9
method: "chain_getHeader"
result: {
"parentHash": "0x1e8d0c8761951bf2d6ef88ed19992a170e4f7949ede4ef8f9ed932417f64e97c",
"number": "0x01587870",
"stateRoot": "0x1a162f134dc40a62b4e9a2698aa3a2a80b87a71c29b65dd97f835b73d026c03d",
"extrinsicsRoot": "0xb6bf28857398273bad91bae6b59dd18cfea01ebcd98c15959a23519ec6aaa7db",
"digest": {
"logs": [
"0x0642414245b50101a20100002f310211…e39f8721c38fd46fbc2b3529eaa98300",
"0x0442454546840308c8104255533cafb5…93ce72c0910aade95485f1210c626eaa",
"0x054241424501011aefaca8841e303e6f…326754a09e5d8e8d698aeca94d77be8e"
]
}
}
[11:53:46.584] TRACE (ws): Received single request
app: "chopsticks"
req: {
"id": 10,
"jsonrpc": "2.0",
"method": "state_getRuntimeVersion",
"params": [
"0x1e8d0c8761951bf2d6ef88ed19992a170e4f7949ede4ef8f9ed932417f64e97c"
]
}
[11:53:46.584] TRACE (ws): Received message
app: "chopsticks"
id: 10
method: "state_getRuntimeVersion"
[11:53:46.584] TRACE (rpc): Handling state_getRuntimeVersion
app: "chopsticks"
[11:53:46.584] TRACE (ws): Received single request
app: "chopsticks"
req: {
"id": 11,
"jsonrpc": "2.0",
"method": "state_getMetadata",
"params": [
"0x1e8d0c8761951bf2d6ef88ed19992a170e4f7949ede4ef8f9ed932417f64e97c"
]
}
[11:53:46.584] TRACE (ws): Received message
app: "chopsticks"
id: 11
method: "state_getMetadata"
[11:53:46.584] TRACE (rpc): Handling state_getMetadata
app: "chopsticks"
[11:53:46.640] TRACE (layer): RemoteStorageLayer get
app: "chopsticks"
at: "0x1e8d0c8761951bf2d6ef88ed19992a170e4f7949ede4ef8f9ed932417f64e97c"
key: "0x3a636f6465"
[11:53:48.771] TRACE (executor): taskRun
app: "chopsticks"
wasm: "0x52bc537646db8e0528b52ffd0058dcd1…325c0330e3953432296edfe533187f03"
calls: [
[
"Metadata_metadata",
[]
]
]
mockSignatureHost: true
allowUnresolvedImports: false
runtimeLogLevel: 5
[11:53:48.772] TRACE (ws): Response for request
app: "chopsticks"
id: 10
method: "state_getRuntimeVersion"
result: {
"specName": "kusama",
"implName": "parity-kusama",
"authoringVersion": 2,
"specVersion": 1001003,
"implVersion": 0,
"apis": [
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
7
],
[
"0x49eaaf1b548a0cb0",
3
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0x2a5e924655399e60",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xfbc577b9d747efd6",
1
]
],
"transactionVersion": 25,
"stateVersion": 1
}
[11:53:49.025] TRACE (executor): taskResponse
app: "chopsticks"
result: "0xb20113006d6574610e350e000c1c7370…696f6e5061796d656e742d0e8d01310e"
storageDiff: []
offchainStorageDiff: []
runtimeLogs: []
[11:53:49.070] TRACE (ws): Response for request
app: "chopsticks"
id: 11
method: "state_getMetadata"
result: "0x6d6574610e350e000c1c73705f636f72…696f6e5061796d656e742d0e8d01310e"
[11:53:49.184] TRACE (ws): Received single request
app: "chopsticks"
req: {
"id": 12,
"jsonrpc": "2.0",
"method": "chain_subscribeFinalizedHeads",
"params": []
}
[11:53:49.184] TRACE (ws): Received message
app: "chopsticks"
id: 12
method: "chain_subscribeFinalizedHeads"
[11:53:49.184] TRACE (rpc): Handling chain_subscribeFinalizedHeads
app: "chopsticks"
[11:53:49.184] TRACE (ws): Response for request
app: "chopsticks"
id: 12
method: "chain_subscribeFinalizedHeads"
result: "7lyipl2rp7j"
[11:53:49.184] TRACE (ws): Received single request
app: "chopsticks"
req: {
"id": 13,
"jsonrpc": "2.0",
"method": "chain_subscribeNewHeads",
"params": []
}
[11:53:49.184] TRACE (ws): Received message
app: "chopsticks"
id: 13
method: "chain_subscribeNewHeads"
[11:53:49.184] TRACE (rpc): Handling chain_subscribeNewHeads
app: "chopsticks"
[11:53:49.184] TRACE (ws): Response for request
app: "chopsticks"
id: 13
method: "chain_subscribeNewHeads"
result: "3nows47llfm"
[11:53:49.235] TRACE (ws): Subscription notification
app: "chopsticks"
method: "chain_finalizedHead"
subid: "7lyipl2rp7j"
data: {
"parentHash": "0x88479bb55ea490a0debc42f8220ada66d7724dc9addf76536420daea3e697d7b",
"number": "0x01585d62",
"stateRoot": "0xdb73e32e4442a4b1515cb1a76b7c5ec3cdd063a5baa80d2d54e98c1daa757246",
"extrinsicsRoot": "0xfe59f4a6cc065974bbfd0a7c315b828abce857a19f15cc47357b324b14b2da65",
"digest": {
"logs": [
"0x0642414245b501013600000011160211…8c99a217ca7fbfe9e3f390675c4ca803",
"0x04424545468403828dbe644a821f6bec…bcc81c351c80c4e5a87b81ab92e2fbad",
"0x054241424501018c0daaf1ea7ba60c9e…12fa776379d224fc3bfe9e22c3932383"
]
}
}
[11:53:49.236] TRACE (ws): Subscription notification
app: "chopsticks"
method: "chain_newHead"
subid: "3nows47llfm"
data: {
"parentHash": "0x88479bb55ea490a0debc42f8220ada66d7724dc9addf76536420daea3e697d7b",
"number": "0x01585d62",
"stateRoot": "0xdb73e32e4442a4b1515cb1a76b7c5ec3cdd063a5baa80d2d54e98c1daa757246",
"extrinsicsRoot": "0xfe59f4a6cc065974bbfd0a7c315b828abce857a19f15cc47357b324b14b2da65",
"digest": {
"logs": [
"0x0642414245b501013600000011160211…8c99a217ca7fbfe9e3f390675c4ca803",
"0x04424545468403828dbe644a821f6bec…bcc81c351c80c4e5a87b81ab92e2fbad",
"0x054241424501018c0daaf1ea7ba60c9e…12fa776379d224fc3bfe9e22c3932383"
]
}
}
[11:53:49.237] TRACE (ws): Received single request
app: "chopsticks"
req: {
"id": 14,
"jsonrpc": "2.0",
"method": "chain_getBlockHash",
"params": [
"0x1585d62"
]
}
[11:53:49.237] TRACE (ws): Received message
app: "chopsticks"
id: 14
method: "chain_getBlockHash"
[11:53:49.237] TRACE (rpc): Handling chain_getBlockHash
app: "chopsticks"
[11:53:49.237] TRACE (ws): Response for request
app: "chopsticks"
id: 14
method: "chain_getBlockHash"
result: "0x00effb708eee400cb8a69aa5fc0f3809415eed03b81d1e785143fe9327c5c7cf"
I think the issue may be here } [11:53:49.237] TRACE (ws): Received single request app: "chopsticks" req: { "id": 14, "jsonrpc": "2.0", "method": "chain_getBlockHash", "params": [ "0x1585d62" ] }
getBlockHash requires number but hexstring is passed instead
Any chance you can handle this still as a hex string? It's been working for a regular node without issue.
Any chance you can handle this still as a hex string? It's been working for a regular node without issue.
Thanks, it's not it unfortunately. Let me open a new issue dedicated to it.
closes #718