Crashing witness node with BTC transaction #355

Closed
opened 2022-03-18 12:50:02 +00:00 by rilesdun · 10 comments
rilesdun commented 2022-03-18 12:50:02 +00:00 (Migrated from gitlab.com)

After creating an account on the irona chain and doing a bitcoin sidechain address mapping:

unlocked >>> add_sidechain_address baris-test-son-btc-1 bitcoin 037d20238c8cc25aa2efaffd415bc3589baee7f2ad10c9b14d2071a4271fd43cdb null  02097be08b8f806b0563bb4e7adc657529a0f04dde3d29208477d33517c5f080ca bcrt1q9f68w3e0j0xsztfshsnh69m85yvrs56krhkzk0 true

add_sidechain_address baris-test-son-btc-1 bitcoin 037d20238c8cc25aa2efaffd415bc3589baee7f2ad10c9b14d2071a4271fd43cdb null  02097be08b8f806b0563bb4e7adc657529a0f04dde3d29208477d33517c5f080ca bcrt1q9f68w3e0j0xsztfshsnh69m85yvrs56krhkzk0 true
{
  "ref_block_num": 62663,
  "ref_block_prefix": 1963913001,
  "expiration": "2022-03-17T19:15:54",
  "operations": [[
      113,{
        "fee": {
          "amount": 0,
          "asset_id": "1.3.0"
        },
        "payer": "1.2.76",
        "sidechain_address_account": "1.2.76",
        "sidechain": "bitcoin",
        "deposit_public_key": "037d20238c8cc25aa2efaffd415bc3589baee7f2ad10c9b14d2071a4271fd43cdb",
        "deposit_address": "",
        "deposit_address_data": "",
        "withdraw_public_key": "02097be08b8f806b0563bb4e7adc657529a0f04dde3d29208477d33517c5f080ca",
        "withdraw_address": "bcrt1q9f68w3e0j0xsztfshsnh69m85yvrs56krhkzk0"
      }
    ]
  ],
  "extensions": [],
  "signatures": [
    "20780e1b1b2f769f6733c112818f3229aad0765c7b76f124b9a3dfe896cf39343c7bbde4ce7c047f04a9139092c116f9c7cb71897394e989d26a658bb2f9d14bac"
  ]
}

When running the following command - is what ended up crashing the witness_node:

./bitcoin-cli -rpcconnect=96.46.48.117  -rpcport=8332  -rpcwallet="baris" -rpcuser=1 -rpcpassword=1 generatetoaddress 1 bcrt1q93v28kyrxnn4g36dqmyrgc83ezj38aqh0mssxm

After this command, I was given a core dump that has been shared with developers.

After creating an account on the irona chain and doing a bitcoin sidechain address mapping: ``` unlocked >>> add_sidechain_address baris-test-son-btc-1 bitcoin 037d20238c8cc25aa2efaffd415bc3589baee7f2ad10c9b14d2071a4271fd43cdb null 02097be08b8f806b0563bb4e7adc657529a0f04dde3d29208477d33517c5f080ca bcrt1q9f68w3e0j0xsztfshsnh69m85yvrs56krhkzk0 true add_sidechain_address baris-test-son-btc-1 bitcoin 037d20238c8cc25aa2efaffd415bc3589baee7f2ad10c9b14d2071a4271fd43cdb null 02097be08b8f806b0563bb4e7adc657529a0f04dde3d29208477d33517c5f080ca bcrt1q9f68w3e0j0xsztfshsnh69m85yvrs56krhkzk0 true { "ref_block_num": 62663, "ref_block_prefix": 1963913001, "expiration": "2022-03-17T19:15:54", "operations": [[ 113,{ "fee": { "amount": 0, "asset_id": "1.3.0" }, "payer": "1.2.76", "sidechain_address_account": "1.2.76", "sidechain": "bitcoin", "deposit_public_key": "037d20238c8cc25aa2efaffd415bc3589baee7f2ad10c9b14d2071a4271fd43cdb", "deposit_address": "", "deposit_address_data": "", "withdraw_public_key": "02097be08b8f806b0563bb4e7adc657529a0f04dde3d29208477d33517c5f080ca", "withdraw_address": "bcrt1q9f68w3e0j0xsztfshsnh69m85yvrs56krhkzk0" } ] ], "extensions": [], "signatures": [ "20780e1b1b2f769f6733c112818f3229aad0765c7b76f124b9a3dfe896cf39343c7bbde4ce7c047f04a9139092c116f9c7cb71897394e989d26a658bb2f9d14bac" ] } ``` When running the following command - is what ended up crashing the witness_node: ``` ./bitcoin-cli -rpcconnect=96.46.48.117 -rpcport=8332 -rpcwallet="baris" -rpcuser=1 -rpcpassword=1 generatetoaddress 1 bcrt1q93v28kyrxnn4g36dqmyrgc83ezj38aqh0mssxm ``` After this command, I was given a core dump that has been shared with developers.
serkixenos commented 2022-03-18 12:50:02 +00:00 (Migrated from gitlab.com)

moved from PBSA/tools-libs/peerplays-utils#9

moved from PBSA/tools-libs/peerplays-utils#9
bgerze commented 2022-03-18 18:54:32 +00:00 (Migrated from gitlab.com)

mentioned in issue PBSA/peerplays-dex#529

mentioned in issue PBSA/peerplays-dex#529
serkixenos commented 2022-03-24 15:30:01 +00:00 (Migrated from gitlab.com)
[first-core-dump.gz](/uploads/add6d1092d6bf2a013f8256e8d9b2e18/first-core-dump.gz)
rilesdun commented 2022-03-24 21:09:46 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
mkhan17 commented 2022-08-11 14:21:23 +00:00 (Migrated from gitlab.com)

Please provide related core dump to witness-node. The attached dump is related to cli_wallet not witness_node

Please provide related core dump to witness-node. The attached dump is related to cli_wallet not witness_node
rilesdun commented 2022-08-11 14:48:58 +00:00 (Migrated from gitlab.com)

This was 4 months ago, since then we are using a new testnet and no longer using irona. To get the core-dump, you will have to reproduce this via the steps i provided to you a few days ago @mkhan17

This was 4 months ago, since then we are using a new testnet and no longer using irona. To get the core-dump, you will have to reproduce this via the steps i provided to you a few days ago @mkhan17
mkhan17 commented 2022-08-12 13:11:43 +00:00 (Migrated from gitlab.com)

logs.tar.gz

The issue of witness node crashing no longer exists, I have tried the exact steps. Witness node dint crash, Please see logs attached.
Environment tried is on baremetal Ubuntu 20.04

[logs.tar.gz](/uploads/e7c764fa4a74d1b5779247c0f90651e6/logs.tar.gz) The issue of witness node crashing no longer exists, I have tried the exact steps. Witness node dint crash, Please see logs attached. Environment tried is on baremetal Ubuntu 20.04
mkhan17 commented 2022-08-12 14:36:35 +00:00 (Migrated from gitlab.com)

Additionally I have followed the steps involved

  1. Setup the local peerplays environment in Ubuntu 20.04. Init script sons-and-witness-network-init.sh
  2. Downloaded bitcoin-0.21.1 testnet from bitcoin-core repo
  3. Started Witness_node with attached config.ini fileconfig.ini
  4. Started bitcoin daemon and executed the init script init-network.sh
  5. Followed the steps from this file create-sidechain-account.md to recreate the issue.
Additionally I have followed the steps involved 1) Setup the local peerplays environment in Ubuntu 20.04. Init script [sons-and-witness-network-init.sh](/uploads/be4d0a656c4ca5d41556955ffef37f3f/sons-and-witness-network-init.sh) 2) Downloaded bitcoin-0.21.1 testnet from bitcoin-core repo 3) Started Witness_node with attached config.ini file[config.ini](/uploads/abc95842578a4e56498f52c944a6f2c1/config.ini) 4) Started bitcoin daemon and executed the init script [init-network.sh](/uploads/4f028c23ede8f6a9e292bda987d148bb/init-network.sh) 5) Followed the steps from this file [create-sidechain-account.md](/uploads/dca327afeedf3a40947e379e111badb9/create-sidechain-account.md) to recreate the issue.
rilesdun commented 2022-08-15 12:19:51 +00:00 (Migrated from gitlab.com)

Thank you @mkhan17 I will close this issue, and if in the future something similar to this comes up I will reopen this issue

Thank you @mkhan17 I will close this issue, and if in the future something similar to this comes up I will reopen this issue
rilesdun (Migrated from gitlab.com) closed this issue 2022-08-15 12:19:52 +00:00
mkhan17 commented 2022-08-16 12:21:20 +00:00 (Migrated from gitlab.com)

assigned to @mkhan17

assigned to @mkhan17
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Peerplays_Blockchain/peerplays_migrated#355
No description provided.