Closed fewensa closed 2 years ago
test for v0.12.1
$ ./bridger.sh darwinia-crab init darwinia-to-crab
+ dirname ./bridger.sh
+ cd .
+ pwd -P
+ BIN_PATH=D:/dev/darwinia-network/bridger
+ export 'RUST_SPANTRACE=1'
+ cargo build --manifest-path D:/dev/darwinia-network/bridger/frame/Cargo.toml --package darwinia-bridger
Finished dev [unoptimized + debuginfo] target(s) in 0.32s
+ D:/dev/darwinia-network/bridger/frame/target/debug/bridger darwinia-crab init darwinia-to-crab
2022-04-18 05:24:58 DEBUG bridger: Found subcommand (darwinia-crab) and args: init darwinia-to-crab
2022-04-18 05:24:58 TRACE bridger: Try execute external command
2022-04-18 05:24:58 TRACE bridger: The execute path is: D:\dev\darwinia-network\bridger\frame\target\debug\
2022-04-18 05:24:58 TRACE bridger: Try detect binary fo path: D:\dev\darwinia-network\bridger\frame\target\debug\../../../bridges\darwinia-crab
2022-04-18 05:24:58 INFO bridger: Try compile bridge-darwinia-crab in path: D:\dev\darwinia-network\bridger\frame\target\debug\../../../bridges\darwinia-crab
2022-04-18 05:24:58 INFO bridger: Execute `cargo build -p bridge-darwinia-crab` in path: D:\dev\darwinia-network\bridger\frame\target\debug\../../../bridges\darwinia-crab
Finished dev [unoptimized + debuginfo] target(s) in 0.91s
2022-04-18 05:24:59 INFO bridger: Execute `bridge-darwinia-crab init darwinia-to-crab` in path: D:\dev\darwinia-network\bridger\frame\target\debug\../../../bridges\darwinia-crab
2022-04-18 05:24:59 INFO darwinia-crab: Init bridge DarwiniaToCrab
2022-04-18 05:25:00 DEBUG darwinia-crab: source client -> Client { genesis_hash: 0x423c03e4221b665894bbf020857410197184aafde304f2032c878c4c721fcc4d }
2022-04-18 05:25:00 DEBUG darwinia-crab: target client -> Client { genesis_hash: 0x0e4a8c41edb30b1ea52bb504a7d400d704f5390efeb2f44e8dcc462740ac58e6 }
2022-04-18 05:25:03 INFO bridge: Prepared initialization data for Darwinia-headers bridge at Crab: InitializationData { header: Header { parent_hash: 0xef0ba02e6ed84f53ab8c07e2c774e72bf372bc7458ce3d079980d88831172a7f, number: 77, state_root: 0x9cb610c717033079356f51d4335b83e5b9d647dc97c0429e5efa10a81a8d8185, extrinsics_root: 0xb5b7227fca7a2c4e69380a84c384f830ea540796866cc7f538f02469d27dd4f5, digest: Digest { logs: [DigestItem::PreRuntime([66, 65, 66, 69], [3, 0, 0, 0, 0, 176, 211, 100, 16, 0, 0, 0, 0, 42, 188, 124, 195, 79, 229, 25, 208, 72, 119, 113, 35, 216, 122, 36, 204, 53, 154, 223, 28, 105, 186, 254, 12, 106, 200, 101, 88, 125, 16, 57, 81, 201, 221, 116, 169, 167, 250, 234, 93, 235, 36, 54, 234, 61, 34, 50, 140, 6, 209, 0, 129, 62, 25, 46, 156, 163, 125, 3, 250, 139, 20, 145, 15, 158, 209, 213, 149, 84, 113, 124, 10, 13, 127, 183, 121, 148, 228, 195, 136, 80, 167, 83, 34, 10, 138, 205, 36, 18, 202, 109, 83, 83, 104, 150, 11]), DigestItem::Other([77, 77, 82, 82, 131, 169, 198, 235, 243, 43, 108, 234, 78, 87, 250, 65, 232, 10, 43, 21, 195, 5, 215, 41, 227, 132, 54, 169, 181, 171, 161, 240, 35, 177, 85, 131]), DigestItem::Seal([66, 65, 66, 69], [226, 137, 79, 36, 50, 210, 34, 62, 206, 76, 125, 222, 16, 204, 115, 141, 96, 131, 106, 117, 41, 226, 35, 244, 126, 42, 127, 139, 130, 150, 232, 105, 185, 189, 159, 203, 166, 222, 92, 140, 130, 145, 154, 13, 31, 187, 138, 77, 164, 4, 255, 32, 150, 206, 96, 144, 148, 4, 153, 75, 35, 77, 233, 136])] } }, authority_list: [(Public(88dc3417d5058ec4b4503e0c12ea1a0a89be200fe98922423d4334014fa6b0ee (5FA9nQDV...)), 1)], set_id: 0, is_halted: false }
2022-04-18 05:25:03 INFO bridge: Successfully submitted Darwinia-headers bridge initialization transaction to Crab: 0xbc7d1f79fdc8f675b19243f4059a169f1fe8430be9abd87ad5aafbb5c253ea61
Success
$ ./bridger.sh darwinia-crab init crab-to-darwinia
+ dirname ./bridger.sh
+ cd .
+ pwd -P
+ BIN_PATH=D:/dev/darwinia-network/bridger
+ export 'RUST_SPANTRACE=1'
+ cargo build --manifest-path D:/dev/darwinia-network/bridger/frame/Cargo.toml --package darwinia-bridger
Finished dev [unoptimized + debuginfo] target(s) in 0.35s
+ D:/dev/darwinia-network/bridger/frame/target/debug/bridger darwinia-crab init crab-to-darwinia
2022-04-18 05:25:12 DEBUG bridger: Found subcommand (darwinia-crab) and args: init crab-to-darwinia
2022-04-18 05:25:12 TRACE bridger: Try execute external command
2022-04-18 05:25:12 TRACE bridger: The execute path is: D:\dev\darwinia-network\bridger\frame\target\debug\
2022-04-18 05:25:12 TRACE bridger: Try detect binary fo path: D:\dev\darwinia-network\bridger\frame\target\debug\../../../bridges\darwinia-crab
2022-04-18 05:25:12 INFO bridger: Try compile bridge-darwinia-crab in path: D:\dev\darwinia-network\bridger\frame\target\debug\../../../bridges\darwinia-crab
2022-04-18 05:25:12 INFO bridger: Execute `cargo build -p bridge-darwinia-crab` in path: D:\dev\darwinia-network\bridger\frame\target\debug\../../../bridges\darwinia-crab
Finished dev [unoptimized + debuginfo] target(s) in 0.90s
2022-04-18 05:25:13 INFO bridger: Execute `bridge-darwinia-crab init crab-to-darwinia` in path: D:\dev\darwinia-network\bridger\frame\target\debug\../../../bridges\darwinia-crab
2022-04-18 05:25:13 INFO darwinia-crab: Init bridge CrabToDarwinia
2022-04-18 05:25:13 DEBUG darwinia-crab: source client -> Client { genesis_hash: 0x0e4a8c41edb30b1ea52bb504a7d400d704f5390efeb2f44e8dcc462740ac58e6 }
2022-04-18 05:25:13 DEBUG darwinia-crab: target client -> Client { genesis_hash: 0x423c03e4221b665894bbf020857410197184aafde304f2032c878c4c721fcc4d }
2022-04-18 05:25:16 INFO bridge: Prepared initialization data for Crab-headers bridge at Darwinia: InitializationData { header: Header { parent_hash: 0x93787407b2872f4dae778e003e9a841b53ffdb56fe4213036c8db1c02dc93fe9, number: 77, state_root: 0x23881ef2539c673efbaa073f898aefa4120b4c57e392f887f5e6f09651759493, extrinsics_root: 0xdde93e17f58977593287001b80c2ceff5934b4f9d8e5c322cc29ef9529b4b415, digest: Digest { logs: [DigestItem::PreRuntime([66, 65, 66, 69], [1, 0, 0, 0, 0, 178, 211, 100, 16, 0, 0, 0, 0, 230, 37, 99, 87, 192, 164, 96, 13, 69, 94, 85, 72, 212, 37, 255, 220, 57, 102, 72, 217, 227, 3, 234, 236, 72, 41, 184, 7, 12, 184, 193, 36, 96, 53, 172, 249, 25, 123, 235, 108, 25, 178, 84, 37, 23, 34, 93, 127, 180, 26, 144, 2, 4, 139, 95, 234, 176, 242, 13, 127, 213, 129, 20, 4, 169, 90, 144, 34, 191, 83, 102, 43, 103, 250, 191, 233, 173, 157, 57, 113, 52, 167, 134, 120, 171, 38, 89, 55, 244, 113, 159, 11, 192, 250, 45, 14]), DigestItem::Consensus([102, 114, 111, 110], [1, 94, 107, 228, 86, 150, 200, 255, 255, 218, 248, 210, 204, 106, 122, 156, 71, 226, 167, 17, 71, 17, 34, 50, 217, 20, 135, 102, 231, 119, 59, 240, 30, 0]), DigestItem::Other([77, 77, 82, 82, 113, 255, 121, 18, 29, 29, 187, 159, 237, 231, 58, 89, 51, 238, 125, 64, 2, 11, 23, 228, 185, 69, 122, 0, 111, 110, 241, 114, 224, 175, 212, 87]), DigestItem::Seal([66, 65, 66, 69], [6, 49, 188, 103, 60, 193, 222, 247, 154, 125, 129, 96, 26, 131, 50, 33, 231, 12, 34, 107, 46, 36, 144, 167, 227, 15, 146, 208, 1, 176, 203, 29, 54, 139, 190, 56, 80, 52, 35, 143, 198, 134, 96, 179, 80, 6, 1, 192, 105, 63, 173, 111, 63, 100, 253, 9, 108, 32, 165, 19, 80, 92, 9, 136])] } }, authority_list: [(Public(88dc3417d5058ec4b4503e0c12ea1a0a89be200fe98922423d4334014fa6b0ee (5FA9nQDV...)), 1)], set_id: 0, is_halted: false }
2022-04-18 05:25:16 INFO bridge: Successfully submitted Crab-headers bridge initialization transaction to Darwinia: 0xf7cb7b43153ab25c525ac53b14f2c8fdd9d6d27edef94fd06f1ebdc0cb6fdc0c
Success
2022-04-18 05:27:52 INFO bridge: Synced Some(0) of Some(1) nonces in Darwinia::MessagesDelivery -> Crab::MessagesDelivery race
2022-04-18 05:27:52 INFO bridge: Synced Some(0) of Some(0) nonces in Darwinia::ReceivingConfirmationsDelivery -> Crab::ReceivingConfirmationsDelivery race
2022-04-18 05:27:52 INFO bridge: Synced Some(0) of Some(0) nonces in Crab::ReceivingConfirmationsDelivery -> Darwinia::ReceivingConfirmationsDelivery race
2022-04-18 05:27:52 INFO bridge: Synced Some(0) of Some(0) nonces in Crab::MessagesDelivery -> Darwinia::MessagesDelivery race
2022-04-18 05:27:58 INFO bridge: Synced 77 of 81 headers
2022-04-18 05:27:58 INFO bridge: Synced 104 of 104 headers
2022-04-18 05:27:59 INFO feemarket: [feemarket] [relay] [Darwinia] You are assigned relayer, you must be relay this nonce(1)
2022-04-18 05:27:59 INFO feemarket: [feemarket] [relay] [Darwinia] About nonce 1 decide is true
2022-04-18 05:28:04 INFO bridge: Synced Some(0) of Some(0) nonces in Darwinia::ReceivingConfirmationsDelivery -> Crab::ReceivingConfirmationsDelivery race
2022-04-18 05:28:04 INFO bridge: Synced Some(0) of Some(1) nonces in Darwinia::MessagesDelivery -> Crab::MessagesDelivery race
2022-04-18 05:28:04 INFO bridge: Synced Some(0) of Some(0) nonces in Crab::MessagesDelivery -> Darwinia::MessagesDelivery race
2022-04-18 05:28:04 INFO bridge: Synced Some(0) of Some(0) nonces in Crab::ReceivingConfirmationsDelivery -> Darwinia::ReceivingConfirmationsDelivery race
2022-04-18 05:28:10 INFO bridge: Synced 77 of 81 headers
2022-04-18 05:28:10 INFO bridge: Synced 106 of 106 headers
2022-04-18 05:28:16 INFO bridge: Synced Some(0) of Some(0) nonces in Crab::MessagesDelivery -> Darwinia::MessagesDelivery race
2022-04-18 05:28:16 INFO bridge: Synced Some(0) of Some(0) nonces in Crab::ReceivingConfirmationsDelivery -> Darwinia::ReceivingConfirmationsDelivery race
2022-04-18 05:28:16 INFO bridge: Synced Some(0) of Some(0) nonces in Darwinia::ReceivingConfirmationsDelivery -> Crab::ReceivingConfirmationsDelivery race
2022-04-18 05:28:16 INFO bridge: Synced Some(1) of Some(1) nonces in Darwinia::MessagesDelivery -> Crab::MessagesDelivery race
2022-04-18 05:28:21 INFO bridge: Synced 77 of 107 headers
2022-04-18 05:28:21 INFO bridge: Synced 106 of 106 headers
2022-04-18 05:28:27 INFO bridge: Synced 107 of 107 headers
2022-04-18 05:28:27 INFO bridge: Synced Some(0) of Some(0) nonces in Darwinia::ReceivingConfirmationsDelivery -> Crab::ReceivingConfirmationsDelivery race
2022-04-18 05:28:27 INFO bridge: Synced Some(0) of Some(0) nonces in Crab::MessagesDelivery -> Darwinia::MessagesDelivery race
2022-04-18 05:28:27 INFO bridge: Synced Some(1) of Some(1) nonces in Darwinia::MessagesDelivery -> Crab::MessagesDelivery race
2022-04-18 05:28:27 INFO bridge: Synced Some(0) of Some(1) nonces in Crab::ReceivingConfirmationsDelivery -> Darwinia::ReceivingConfirmationsDelivery race
2022-04-18 05:28:33 INFO bridge: Synced 106 of 106 headers
2022-04-18 05:28:39 INFO bridge: Synced 109 of 109 headers
2022-04-18 05:28:40 INFO bridge: Synced Some(1) of Some(1) nonces in Crab::ReceivingConfirmationsDelivery -> Darwinia::ReceivingConfirmationsDelivery race
2022-04-18 05:28:40 INFO bridge: Synced Some(1) of Some(1) nonces in Darwinia::MessagesDelivery -> Crab::MessagesDelivery race
2022-04-18 05:28:40 INFO bridge: Synced Some(0) of Some(0) nonces in Crab::MessagesDelivery -> Darwinia::MessagesDelivery race
2022-04-18 05:28:40 INFO bridge: Synced Some(0) of Some(0) nonces in Darwinia::ReceivingConfirmationsDelivery -> Crab::ReceivingConfirmationsDelivery race
Based on #443