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

dry-run mode for init bridge command #1690

Merged
merged 2 commits into from
Dec 1, 2022
Merged

dry-run mode for init bridge command #1690

merged 2 commits into from
Dec 1, 2022

Conversation

bkontur
Copy link
Contributor

@bkontur bkontur commented Dec 1, 2022

this logs encoded call, which can be decoded with: https://polkadot.js.org/apps/?rpc=ws%3A%2F%2F127.0.0.1%3A9944#/extrinsics/decode

2022-12-01 13:18:05 +00 INFO bridge Connecting to Millau node at ws://localhost:9945
2022-12-01 13:18:05 +00 INFO bridge Connecting to Rialto node at ws://localhost:9944
2022-12-01 13:18:05 +00 INFO bridge Millau-headers bridge at Rialto is already initialized. Skipping
2022-12-01 13:18:06 +00 INFO bridge Prepared initialization data for Millau-headers bridge at Rialto: InitializationData { header: Header { parent_hash: 0x706da343a66a7418a5da14f0c73b0954057d9c204eef51666457d1c26a73fff5e1229b75db928c363ca907b01d332fd1cf7a1b0a1972147169b961cecdcc7cd2, number: 367, state_root: 0xcf087713bce805f36c875b5a8e36cc7becda55f0e6164364b67c52f5646d862f22df29ae6be5a29fc70b8fbe3689f60848bd8b1e8fe6c876b6694b62210787c1, extrinsics_root: 0x879e2c3f57009eb6e588155a7d8734c91633fa80947e0eadcaa6fdf47d9a2cdf2cee18c0d6e18697a77b88373558fe82a3b42be74f18295c664faa109409751d, digest: Digest { logs: [DigestItem::PreRuntime([97, 117, 114, 97], [235, 198, 150, 16, 0, 0, 0, 0]), DigestItem::Consensus([66, 69, 69, 70], [3, 67, 241, 226, 32, 0, 48, 31, 116, 246, 36, 233, 133, 105, 90, 91, 39, 102, 115, 164, 43, 247, 172, 130, 208, 235, 110, 12, 193, 255, 232, 213, 248]), DigestItem::Seal([97, 117, 114, 97], [120, 114, 152, 244, 122, 30, 200, 107, 184, 228, 36, 100, 74, 70, 234, 146, 164, 211, 83, 110, 242, 187, 153, 185, 43, 208, 162, 229, 156, 197, 102, 21, 79, 100, 17, 196, 30, 240, 147, 25, 167, 182, 42, 214, 204, 12, 58, 137, 186, 105, 60, 171, 90, 31, 235, 58, 45, 74, 225, 141, 228, 101, 81, 137])] } }, authority_list: [(Public(88dc3417d5058ec4b4503e0c12ea1a0a89be200fe98922423d4334014fa6b0ee (5FA9nQDV...)), 1)], set_id: 6, operating_mode: BasicOperatingMode::Normal }
2022-12-01 13:18:06 +00 INFO bridge Initialize bridge call encoded as hex string: "0x01000e01706da343a66a7418a5da14f0c73b0954057d9c204eef51666457d1c26a73fff5e1229b75db928c363ca907b01d332fd1cf7a1b0a1972147169b961cecdcc7cd2bd05cf087713bce805f36c875b5a8e36cc7becda55f0e6164364b67c52f5646d862f22df29ae6be5a29fc70b8fbe3689f60848bd8b1e8fe6c876b6694b62210787c1879e2c3f57009eb6e588155a7d8734c91633fa80947e0eadcaa6fdf47d9a2cdf2cee18c0d6e18697a77b88373558fe82a3b42be74f18295c664faa109409751d0c066175726120ebc69610000000000442454546840343f1e22000301f74f624e985695a5b276673a42bf7ac82d0eb6e0cc1ffe8d5f805617572610101787298f47a1ec86bb8e424644a46ea92a4d3536ef2bb99b92bd0a2e59cc566154f6411c41ef09319a7b62ad6cc0c3a89ba693cab5a1feb3a2d4ae18de46551890488dc3417d5058ec4b4503e0c12ea1a0a89be200fe98922423d4334014fa6b0ee0100000000000000060000000000000000"
2022-12-01 13:18:06 +00 ERROR bridge Failed to submit Millau-headers bridge initialization transaction to Rialto: SubmitTransaction("Rialto", Custom("Not submitting extrinsic in `dry-run` mode!"))

@bkontur bkontur requested a review from svyatonik December 1, 2022 13:24
@bkontur bkontur enabled auto-merge (squash) December 1, 2022 21:08
@bkontur bkontur merged commit 0625544 into master Dec 1, 2022
@bkontur bkontur deleted the bko-dry-run branch December 1, 2022 21:27
jiguantong pushed a commit to darwinia-network/darwinia-messages-substrate that referenced this pull request Jan 6, 2023
jiguantong pushed a commit to darwinia-network/darwinia-messages-substrate that referenced this pull request Jan 9, 2023
boundless-forest pushed a commit to darwinia-network/darwinia-messages-substrate that referenced this pull request Jan 12, 2023
* Anchor polkadot-v0.9.32

* fix parity-util-mem conflict

* Anchor polkadot-v0.9.33

* Companion for paritytech/parity-bridges-common#1613

* Companion for paritytech/parity-bridges-common#1616

* Companion for paritytech/parity-bridges-common#1619

* Companion for paritytech/parity-bridges-common#1623

* Companion for paritytech/parity-bridges-common#1622

* Companion for paritytech/parity-bridges-common#1655

* Companion for paritytech/parity-bridges-common#1670

* Companion for paritytech/parity-bridges-common#1690

* Correct cargo

* Revert "Companion for paritytech/parity-bridges-common#1690"

This reverts commit 926b32d.

* Revert "Companion for paritytech/parity-bridges-common#1670"

This reverts commit b96b41c.

* Fix compile

* Revert "Companion for paritytech/parity-bridges-common#1622"

This reverts commit 4c5865d.

* Fix compile

* format

* Fix test

* Fix dispatch test

* Try fix compile with darwinia-2.0

* Revert "Try fix compile with darwinia-2.0"

This reverts commit c9dcd67.

* Update prepare branch

* Format

* Remove unused trait

* Remove unused import
jiguantong pushed a commit to darwinia-network/darwinia-messages-substrate that referenced this pull request Jan 17, 2023
* Anchor polkadot-v0.9.32

* fix parity-util-mem conflict

* Anchor polkadot-v0.9.33

* Companion for paritytech/parity-bridges-common#1613

* Companion for paritytech/parity-bridges-common#1616

* Companion for paritytech/parity-bridges-common#1619

* Companion for paritytech/parity-bridges-common#1623

* Companion for paritytech/parity-bridges-common#1622

* Companion for paritytech/parity-bridges-common#1655

* Companion for paritytech/parity-bridges-common#1670

* Companion for paritytech/parity-bridges-common#1690

* Correct cargo

* Revert "Companion for paritytech/parity-bridges-common#1690"

This reverts commit 926b32d.

* Revert "Companion for paritytech/parity-bridges-common#1670"

This reverts commit b96b41c.

* Fix compile

* Revert "Companion for paritytech/parity-bridges-common#1622"

This reverts commit 4c5865d.

* Fix compile

* format

* Fix test

* Fix dispatch test

* Try fix compile with darwinia-2.0

* Revert "Try fix compile with darwinia-2.0"

This reverts commit c9dcd67.

* Update prepare branch

* Format

* Remove unused trait

* Remove unused import
jiguantong pushed a commit to darwinia-network/darwinia-messages-substrate that referenced this pull request Jan 17, 2023
…238)

* Anchor polkadot-v0.9.32

* fix parity-util-mem conflict

* Anchor polkadot-v0.9.33

* Companion for paritytech/parity-bridges-common#1613

* Companion for paritytech/parity-bridges-common#1616

* Companion for paritytech/parity-bridges-common#1619

* Companion for paritytech/parity-bridges-common#1623

* Companion for paritytech/parity-bridges-common#1622

* Companion for paritytech/parity-bridges-common#1655

* Companion for paritytech/parity-bridges-common#1670

* Companion for paritytech/parity-bridges-common#1690

* Correct cargo

* Revert "Companion for paritytech/parity-bridges-common#1690"

This reverts commit 926b32d.

* Revert "Companion for paritytech/parity-bridges-common#1670"

This reverts commit b96b41c.

* Fix compile

* Revert "Companion for paritytech/parity-bridges-common#1622"

This reverts commit 4c5865d.

* Fix compile

* format

* Fix test

* Fix dispatch test

* Try fix compile with darwinia-2.0

* Revert "Try fix compile with darwinia-2.0"

This reverts commit c9dcd67.

* Update prepare branch

* Format

* Remove unused trait

* Remove unused import
jiguantong pushed a commit to darwinia-network/darwinia-messages-substrate that referenced this pull request Apr 19, 2023
svyatonik pushed a commit that referenced this pull request Jul 17, 2023
Co-authored-by: EgorPopelyaev <egor@parity.io>
serban300 pushed a commit to serban300/parity-bridges-common that referenced this pull request Mar 27, 2024
* `dry-run` mode for init bridge command

* fix clippy
serban300 pushed a commit to serban300/parity-bridges-common that referenced this pull request Apr 8, 2024
* `dry-run` mode for init bridge command

* fix clippy
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 this pull request may close these issues.

2 participants