Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the transaction did not broadcast properly #188

Closed
gpBlockchain opened this issue Jan 27, 2024 · 0 comments · Fixed by #189
Closed

the transaction did not broadcast properly #188

gpBlockchain opened this issue Jan 27, 2024 · 0 comments · Fixed by #189

Comments

@gpBlockchain
Copy link

get_peers

Both Protocols 0x65(RelayV2) and Protocols 0x67(RelayV3) are present in the result

  • before ckb2023, v3 doesn't work with relay tx
  • after ckb2023, v2 doesn't work with relay tx
{"jsonrpc":"2.0","result":[{"addresses":[{"address":"/ip4/8.217.166.57/tcp/8117/p2p/QmX8EUznyUDnpfdHANBfy6AjDZkYsfMH5WRjdkf1fyiFEK","score":"0x64"},{"address":"/ip4/8.217.166.57/tcp/8117/p2p/QmX8EUznyUDnpfdHANBfy6AjDZkYsfMH5WRjdkf1fyiFEK","score":"0x64"}],"connected_duration":"0x2206e","node_id":"QmX8EUznyUDnpfdHANBfy6AjDZkYsfMH5WRjdkf1fyiFEK","protocols":[{"id":"0x1","version":"3"},{"id":"0x4","version":"3"},{"id":"0x79","version":"3"},{"id":"0x64","version":"3"},{"id":"0x2","version":"3"},{"id":"0x65","version":"3"},{"id":"0x0","version":"3"},{"id":"0x78","version":"3"}],"sync_state":{"proved_best_known_header":{"compact_target":"0x1d094523","dao":"0x961103291b2bf24af0097ca3c7db2700188c03c08b1af805007c54358d20d508","epoch":"0x70800e1001f7c","extra_hash":"0xc4aba2820b3b85c7890cf7ceda89831e4005f8d16e4cc3d197df1db69aa9d0b8","hash":"0x187d92ea7d0935e7ab1a991bb6138be25e77d6441e20b5d8b9cc094aa16c2aae","nonce":"0x887f7947ff2473010a2e41115aaf4553","number":"0xb85272","parent_hash":"0x906ddd0495206b375afa958ed0af8111961704dc3475484129d916dfac0608d3","proposals_hash":"0x781414e3a4f8e30eb2f706f227027245f844f69dbf6fff240d47d36d22623a1e","timestamp":"0x18d49a2db34","transactions_root":"0x2b1f95696230babbf1f9e71e1d7d4bd6be6088b6398781ea2e185aed4bc10726","version":"0x0"},"requested_best_known_header":null},"version":"0.113.0 (82871a3 2024-01-09)"},{"addresses":[{"address":"/ip4/4.241.132.26/tcp/8111/p2p/QmX5D6aJiAQ5Fxn4BfVqSn6zrgyuQM1oXVC9yvmzLuHXnx","score":"0x64"},{"address":"/ip4/4.241.132.26/tcp/8111/p2p/QmX5D6aJiAQ5Fxn4BfVqSn6zrgyuQM1oXVC9yvmzLuHXnx","score":"0x64"}],"connected_duration":"0x4a86","node_id":"QmX5D6aJiAQ5Fxn4BfVqSn6zrgyuQM1oXVC9yvmzLuHXnx","protocols":[{"id":"0x67","version":"3"},{"id":"0x4","version":"3"},{"id":"0x79","version":"3"},{"id":"0x2","version":"3"},{"id":"0x1","version":"3"},{"id":"0x0","version":"3"},{"id":"0x64","version":"3"},{"id":"0x78","version":"3"}],"sync_state":{"proved_best_known_header":{"compact_target":"0x1d094523","dao":"0x961103291b2bf24af0097ca3c7db2700188c03c08b1af805007c54358d20d508","epoch":"0x70800e1001f7c","extra_hash":"0xc4aba2820b3b85c7890cf7ceda89831e4005f8d16e4cc3d197df1db69aa9d0b8","hash":"0x187d92ea7d0935e7ab1a991bb6138be25e77d6441e20b5d8b9cc094aa16c2aae","nonce":"0x887f7947ff2473010a2e41115aaf4553","number":"0xb85272","parent_hash":"0x906ddd0495206b375afa958ed0af8111961704dc3475484129d916dfac0608d3","proposals_hash":"0x781414e3a4f8e30eb2f706f227027245f844f69dbf6fff240d47d36d22623a1e","timestamp":"0x18d49a2db34","transactions_root":"0x2b1f95696230babbf1f9e71e1d7d4bd6be6088b6398781ea2e185aed4bc10726","version":"0x0"},"requested_best_known_header":null},"version":"0.113.0 (82871a3 2024-01-09)"},{"addresses":[{"address":"/ip4/43.198.48.141/tcp/8115/p2p/QmNpxACfdVw5pMVeAB82TfRN1qLKcSV5Tb76MTaeh2hdHh","score":"0x64"},{"address":"/ip4/43.198.48.141/tcp/8115/p2p/QmNpxACfdVw5pMVeAB82TfRN1qLKcSV5Tb76MTaeh2hdHh","score":"0x64"}],"connected_duration":"0xfd9","node_id":"QmNpxACfdVw5pMVeAB82TfRN1qLKcSV5Tb76MTaeh2hdHh","protocols":[{"id":"0x2","version":"3"},{"id":"0x79","version":"3"},{"id":"0x65","version":"3"},{"id":"0x4","version":"3"},{"id":"0x1","version":"3"},{"id":"0x0","version":"3"},{"id":"0x64","version":"3"},{"id":"0x78","version":"3"}],"sync_state":{"proved_best_known_header":{"compact_target":"0x1d094523","dao":"0x961103291b2bf24af0097ca3c7db2700188c03c08b1af805007c54358d20d508","epoch":"0x70800e1001f7c","extra_hash":"0xc4aba2820b3b85c7890cf7ceda89831e4005f8d16e4cc3d197df1db69aa9d0b8","hash":"0x187d92ea7d0935e7ab1a991bb6138be25e77d6441e20b5d8b9cc094aa16c2aae","nonce":"0x887f7947ff2473010a2e41115aaf4553","number":"0xb85272","parent_hash":"0x906ddd0495206b375afa958ed0af8111961704dc3475484129d916dfac0608d3","proposals_hash":"0x781414e3a4f8e30eb2f706f227027245f844f69dbf6fff240d47d36d22623a1e","timestamp":"0x18d49a2db34","transactions_root":"0x2b1f95696230babbf1f9e71e1d7d4bd6be6088b6398781ea2e185aed4bc10726","version":"0x0"},"requested_best_known_header":null},"version":"0.114.0-pre (76fe66d 2024-01-25)"},{"addresses":[{"address":"/ip4/52.147.120.180/tcp/8111/p2p/QmPcJY2gZLUm66szYA9QaG1P3rzwseWCMgbj6AyNCyW4G2","score":"0x64"},{"address":"/ip4/52.147.120.180/tcp/8111/p2p/QmPcJY2gZLUm66szYA9QaG1P3rzwseWCMgbj6AyNCyW4G2","score":"0x64"}],"connected_duration":"0xfd9","node_id":"QmPcJY2gZLUm66szYA9QaG1P3rzwseWCMgbj6AyNCyW4G2","protocols":[{"id":"0x78","version":"3"},{"id":"0x4","version":"3"},{"id":"0x79","version":"3"},{"id":"0x64","version":"3"},{"id":"0x2","version":"3"},{"id":"0x0","version":"3"},{"id":"0x1","version":"3"},{"id":"0x67","version":"3"}],"sync_state":{"proved_best_known_header":{"compact_target":"0x1d094523","dao":"0x961103291b2bf24af0097ca3c7db2700188c03c08b1af805007c54358d20d508","epoch":"0x70800e1001f7c","extra_hash":"0xc4aba2820b3b85c7890cf7ceda89831e4005f8d16e4cc3d197df1db69aa9d0b8","hash":"0x187d92ea7d0935e7ab1a991bb6138be25e77d6441e20b5d8b9cc094aa16c2aae","nonce":"0x887f7947ff2473010a2e41115aaf4553","number":"0xb85272","parent_hash":"0x906ddd0495206b375afa958ed0af8111961704dc3475484129d916dfac0608d3","proposals_hash":"0x781414e3a4f8e30eb2f706f227027245f844f69dbf6fff240d47d36d22623a1e","timestamp":"0x18d49a2db34","transactions_root":"0x2b1f95696230babbf1f9e71e1d7d4bd6be6088b6398781ea2e185aed4bc10726","version":"0x0"},"requested_best_known_header":null},"version":"0.113.0 (82871a3 2024-01-09)"},{"addresses":[{"address":"/ip4/13.236.13.195/tcp/8111/p2p/QmfUTZxsse7rFJTJfoUv8bbStoDLETxst5nJEpJozNuAnH","score":"0x64"},{"address":"/ip4/13.236.13.195/tcp/8111/p2p/QmfUTZxsse7rFJTJfoUv8bbStoDLETxst5nJEpJozNuAnH","score":"0x64"}],"connected_duration":"0x16e8d","node_id":"QmfUTZxsse7rFJTJfoUv8bbStoDLETxst5nJEpJozNuAnH","protocols":[{"id":"0x64","version":"3"},{"id":"0x79","version":"3"},{"id":"0x0","version":"3"},{"id":"0x67","version":"3"},{"id":"0x78","version":"3"},{"id":"0x4","version":"3"},{"id":"0x1","version":"3"},{"id":"0x2","version":"3"}],"sync_state":{"proved_best_known_header":{"compact_target":"0x1d094523","dao":"0x961103291b2bf24af0097ca3c7db2700188c03c08b1af805007c54358d20d508","epoch":"0x70800e1001f7c","extra_hash":"0xc4aba2820b3b85c7890cf7ceda89831e4005f8d16e4cc3d197df1db69aa9d0b8","hash":"0x187d92ea7d0935e7ab1a991bb6138be25e77d6441e20b5d8b9cc094aa16c2aae","nonce":"0x887f7947ff2473010a2e41115aaf4553","number":"0xb85272","parent_hash":"0x906ddd0495206b375afa958ed0af8111961704dc3475484129d916dfac0608d3","proposals_hash":"0x781414e3a4f8e30eb2f706f227027245f844f69dbf6fff240d47d36d22623a1e","timestamp":"0x18d49a2db34","transactions_root":"0x2b1f95696230babbf1f9e71e1d7d4bd6be6088b6398781ea2e185aed4bc10726","version":"0x0"},"requested_best_known_header":null},"version":"0.113.0 (82871a3 2024-01-09)"},{"addresses":[{"address":"/ip4/35.176.207.239/tcp/8111/p2p/QmSJTsMsMGBjzv1oBNwQU36VhQRxc2WQpFoRu1ZifYKrjZ","score":"0x64"},{"address":"/ip4/35.176.207.239/tcp/8111/p2p/QmSJTsMsMGBjzv1oBNwQU36VhQRxc2WQpFoRu1ZifYKrjZ","score":"0x64"}],"connected_duration":"0x55194","node_id":"QmSJTsMsMGBjzv1oBNwQU36VhQRxc2WQpFoRu1ZifYKrjZ","protocols":[{"id":"0x79","version":"3"},{"id":"0x2","version":"3"},{"id":"0x65","version":"3"},{"id":"0x4","version":"3"},{"id":"0x78","version":"3"},{"id":"0x64","version":"3"},{"id":"0x0","version":"3"},{"id":"0x1","version":"3"}],"sync_state":{"proved_best_known_header":{"compact_target":"0x1d094523","dao":"0x961103291b2bf24af0097ca3c7db2700188c03c08b1af805007c54358d20d508","epoch":"0x70800e1001f7c","extra_hash":"0xc4aba2820b3b85c7890cf7ceda89831e4005f8d16e4cc3d197df1db69aa9d0b8","hash":"0x187d92ea7d0935e7ab1a991bb6138be25e77d6441e20b5d8b9cc094aa16c2aae","nonce":"0x887f7947ff2473010a2e41115aaf4553","number":"0xb85272","parent_hash":"0x906ddd0495206b375afa958ed0af8111961704dc3475484129d916dfac0608d3","proposals_hash":"0x781414e3a4f8e30eb2f706f227027245f844f69dbf6fff240d47d36d22623a1e","timestamp":"0x18d49a2db34","transactions_root":"0x2b1f95696230babbf1f9e71e1d7d4bd6be6088b6398781ea2e185aed4bc10726","version":"0x0"},"requested_best_known_header":null},"version":"0.113.0 (82871a3 2024-01-09)"}],"id":64}

when send tx , full node return Status::ignored(), the light client did not print any logs but considered the transaction broadcast successful.
https://github.com/nervosnetwork/ckb/blob/develop/sync/src/relayer/mod.rs#L136

when send tx commited, tx was not removed from the pending list

pending_txs: Arc<RwLock<PendingTxs>>,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant