peerplays witness restarts during BTC deposit #183

Closed
opened 2021-09-29 18:54:04 +00:00 by prandnum · 12 comments
prandnum commented 2021-09-29 18:54:04 +00:00 (Migrated from gitlab.com)

peerplays witness restarted when BTC deposit was executed.

root@50e966b2728f:~/bitcoin-network# ./bitcoin-cli -regtest -rpcport=8332 -rpcuser=1 -rpcpassword=1 -rpcwallet=default sendtoaddress bcrt1q5vkalfewhvmdux56u4xakk56f5lq0rxm53y9qkq5jllhnz78mdsqva5uh2 99 "" "" false
b2157fe3055d0e5d9d0d4e518fdd20eae9b00cc45e460441120a8941b897cde4
root@50e966b2728f:~/bitcoin-network#
root@50e966b2728f:~/bitcoin-network# ./bitcoin-cli -regtest -rpcport=8332 -rpcuser=1 -rpcpassword=1 -rpcwallet=default generatetoaddress 6 bcrt1qhap2ay90flw6hvk7w0qtd209n8pfdnpkjdc2q6
[
  "66a0876904fbd3888840defe535d40c28e1146d6c3fac930bdf56cddb6789025",
  "3895deb4701e1e802eb1c3b12e763a60a55bd201e5c56154ec2bd09f316aeb99",
  "15309126364cd594db0f444dbac303798bf5217b789269d88fd3dc2cd10d8590",
  "409f9716c91211f19fa25cc8507c59d76e5af599f9ebc8997bbc00a09736eac5",
  "03342ad966eae506e5a3ff5923cc0195213e0afa87935b45722febe0e2de356f",
  "7ac12cb15e85d26ca1eb6a247a9de5ada56b71507032c5a77b5a6e5b4bdf4166"
]
root@50e966b2728f:~/bitcoin-network#
root@50e966b2728f:~/bitcoin-network# ./bitcoin-cli -regtest -rpcport=8332 -rpcuser=1 -rpcpassword=1 -rpcwallet=default generatetoaddress 6 bcrt1qhap2ay90flw6hvk7w0qtd209n8pfdnpkjdc2q6
[
  "24507522caf169bb5119f074d2a8ca486d43be1c27d0cbed6848142fd837840a",
  "2fc770acff5e32051852bb9fc084ac9d0267767245f9b5159f3f36f9e65b4776",
  "7964ef86bb62255c5eaa91c2483f4e792bd56afa4a8f567a31a593ca3e25a3ae",
  "3779cc9e53548b251381337d60953df934682ec649db9c281eac1ac179b59b8a",
  "68ea4500ee6eb9ae38d1c3724e95cf4eab4f6f5bca295598b60bb419270b6a6c",
  "3c9d4619293ce6e7917eab6a22da09bd8cf3804665b80cb793c925c1b1c84737"
]
root@50e966b2728f:~/bitcoin-network#
root@ip-172-31-35-225:/var/lib/docker/containers# sudo docker ps -a --no-trunc
CONTAINER ID                                                       IMAGE                   COMMAND                                                           CREATED             STATUS             PORTS                                                                                                                                             NAMES
2397fce482fec46451547ef90cc5761ed4414108c65db66983b7765e2fb8d57d   faucet-for-peerplays    "/home/peerplays/faucet/start.sh"                                 About an hour ago   Up About an hour   22/tcp, 0.0.0.0:5000->5000/tcp, :::5000->5000/tcp                                                                                                 peerplaysqaenvironment_faucet-for-peerplays_1
cf4d8a43ebddb2265f9d079ef93f04660b646edd6b1d20e60253839587d771a8   redis:latest            "docker-entrypoint.sh redis-server"                               About an hour ago   Up About an hour   6379/tcp                                                                                                                                          peerplaysqaenvironment_redis-for-peerplays_1
a7bd1d0f2ad576635f901baf1891573168e8b7cc3ca2e98e35098e6913f6a787   peerplays01             "./witness_node -d ./witness_node_data_dir --replay-blockchain"   About an hour ago   Up 12 minutes      0.0.0.0:8090->8090/tcp, :::8090->8090/tcp, 22/tcp, 0.0.0.0:9777->9777/tcp, :::9777->9777/tcp                                                      peerplaysqaenvironment_peerplays01_1
71daa3898ba9f90e9e830a3a09c82cc10de53c93a0f0ada14ad7815cfdef070a   peerplays12             "./witness_node -d ./witness_node_data_dir --replay-blockchain"   About an hour ago   Up About an hour   22/tcp, 0.0.0.0:8101->8090/tcp, :::8101->8090/tcp, 0.0.0.0:9788->9777/tcp, :::9788->9777/tcp                                                      peerplaysqaenvironment_peerplays12_1
4700b3794d00e174eb2350ad95737ec4f74a69ce8443880cf0e35be2381ae468   peerplays07             "./witness_node -d ./witness_node_data_dir --replay-blockchain"   About an hour ago   Up About an hour   22/tcp, 0.0.0.0:8096->8090/tcp, :::8096->8090/tcp, 0.0.0.0:9783->9777/tcp, :::9783->9777/tcp                                                      peerplaysqaenvironment_peerplays07_1
579a13d19122d1ec472f4285f52623d676718bcb1f9eccc019abcb763d9e2901   peerplays09             "./witness_node -d ./witness_node_data_dir --replay-blockchain"   About an hour ago   Up 12 minutes      22/tcp, 0.0.0.0:8098->8090/tcp, :::8098->8090/tcp, 0.0.0.0:9785->9777/tcp, :::9785->9777/tcp                                                      peerplaysqaenvironment_peerplays09_1
f7a8dba4b6d4cb330aa87fd1d261f9d6d524a2e0cc3bf5409c0900391db20b2c   peerplays03             "./witness_node -d ./witness_node_data_dir --replay-blockchain"   About an hour ago   Up About an hour   22/tcp, 0.0.0.0:8092->8090/tcp, :::8092->8090/tcp, 0.0.0.0:9779->9777/tcp, :::9779->9777/tcp                                                      peerplaysqaenvironment_peerplays03_1
0511eaa88a11ec5dbce7ddf1b1feaa6f286e98d792d9e5db874181759d2fe7ae   peerplays14             "./witness_node -d ./witness_node_data_dir --replay-blockchain"   About an hour ago   Up About an hour   22/tcp, 0.0.0.0:8103->8090/tcp, :::8103->8090/tcp, 0.0.0.0:9790->9777/tcp, :::9790->9777/tcp                                                      peerplaysqaenvironment_peerplays14_1
54eb8e10d31a77e412a41df305bc0466c12a362e9eb4d5267973464e314c5563   peerplays10             "./witness_node -d ./witness_node_data_dir --replay-blockchain"   About an hour ago   Up 12 minutes      22/tcp, 0.0.0.0:8099->8090/tcp, :::8099->8090/tcp, 0.0.0.0:9786->9777/tcp, :::9786->9777/tcp                                                      peerplaysqaenvironment_peerplays10_1
63021f65d99c3af4b334657efd4f6fa4904fb4452bc644bfadcbbd5e4b2a5612   peerplays02             "./witness_node -d ./witness_node_data_dir --replay-blockchain"   About an hour ago   Up 12 minutes      22/tcp, 0.0.0.0:8091->8090/tcp, :::8091->8090/tcp, 0.0.0.0:9778->9777/tcp, :::9778->9777/tcp                                                      peerplaysqaenvironment_peerplays02_1
2a436cd22a81e7b4b5e3b678ae5f8115a9664c3480139694a74e570994bef151   peerplays06             "./witness_node -d ./witness_node_data_dir --replay-blockchain"   About an hour ago   Up About an hour   22/tcp, 0.0.0.0:8095->8090/tcp, :::8095->8090/tcp, 0.0.0.0:9782->9777/tcp, :::9782->9777/tcp                                                      peerplaysqaenvironment_peerplays06_1
af57877f4bfcafa0b44838c4edde0f57064a134aba95804a057f45ff4e2434d6   peerplays15             "./witness_node -d ./witness_node_data_dir --replay-blockchain"   About an hour ago   Up About an hour   22/tcp, 0.0.0.0:8104->8090/tcp, :::8104->8090/tcp, 0.0.0.0:9791->9777/tcp, :::9791->9777/tcp                                                      peerplaysqaenvironment_peerplays15_1
7e01845c74f632ca3f007f29d308216a085fcdcba978ab53218b0fceed7bee0a   peerplays16             "./witness_node -d ./witness_node_data_dir --replay-blockchain"   About an hour ago   Up 12 minutes      22/tcp, 0.0.0.0:8105->8090/tcp, :::8105->8090/tcp, 0.0.0.0:9792->9777/tcp, :::9792->9777/tcp                                                      peerplaysqaenvironment_peerplays16_1
a0e43d1e4f221440031b65ce44480d84d467b21d163f3fc0674c157a874c35fb   peerplays13             "./witness_node -d ./witness_node_data_dir --replay-blockchain"   About an hour ago   Up 12 minutes      22/tcp, 0.0.0.0:8102->8090/tcp, :::8102->8090/tcp, 0.0.0.0:9789->9777/tcp, :::9789->9777/tcp                                                      peerplaysqaenvironment_peerplays13_1
6409aa4d639fb90d355aeb371d31a79df2bdcbe8c78641d4e7b5b7594f24baa8   peerplays08             "./witness_node -d ./witness_node_data_dir --replay-blockchain"   About an hour ago   Up About an hour   22/tcp, 0.0.0.0:8097->8090/tcp, :::8097->8090/tcp, 0.0.0.0:9784->9777/tcp, :::9784->9777/tcp                                                      peerplaysqaenvironment_peerplays08_1
a09936a3e9b1c458c4e476bfba27e910c7a06b31a8c63d9f0917ef47a1d0f821   peerplays05             "./witness_node -d ./witness_node_data_dir --replay-blockchain"   About an hour ago   Up About an hour   22/tcp, 0.0.0.0:8094->8090/tcp, :::8094->8090/tcp, 0.0.0.0:9781->9777/tcp, :::9781->9777/tcp                                                      peerplaysqaenvironment_peerplays05_1
b56b672891f74227cebb773dccaea0a7b7d6bbb03327b19b3e8aae0e9b446a47   peerplays04             "./witness_node -d ./witness_node_data_dir --replay-blockchain"   About an hour ago   Up About an hour   22/tcp, 0.0.0.0:8093->8090/tcp, :::8093->8090/tcp, 0.0.0.0:9780->9777/tcp, :::9780->9777/tcp                                                      peerplaysqaenvironment_peerplays04_1
6888209f397f086f1498b745e9c8aeaced6f938a0fb73dfb6ff95ee95e94b53a   peerplays11             "./witness_node -d ./witness_node_data_dir --replay-blockchain"   About an hour ago   Up About an hour   22/tcp, 0.0.0.0:8100->8090/tcp, :::8100->8090/tcp, 0.0.0.0:9787->9777/tcp, :::9787->9777/tcp                                                      peerplaysqaenvironment_peerplays11_1
2f4044f518a74c8aad10cf1c24962586f978d8f2f045c26e05ffbac574d64496   peerplays-base          "/usr/sbin/sshd -D"                                               About an hour ago   Up About an hour   22/tcp, 8090/tcp, 9777/tcp                                                                                                                        peerplaysqaenvironment_peerplays-base_1
8e7832706f6350bc0600bea75eb02909e3f4682ea89cbe4ca25cdc3806ca4721   hive-for-peerplays      "./hived -d ./hived_data_dir"                                     6 hours ago         Up 6 hours         22/tcp, 0.0.0.0:28090-28091->28090-28091/tcp, :::28090-28091->28090-28091/tcp                                                                     peerplaysqaenvironment_hive-for-peerplays_1
50e966b2728f6ab9ebdce084efd32c0efd39967407691610a3c99db2c5cb8e10   bitcoin-for-peerplays   "./bitcoind -datadir=./network/"                                  6 hours ago         Up 6 hours         0.0.0.0:8332->8332/tcp, :::8332->8332/tcp, 0.0.0.0:11111->11111/tcp, :::11111->11111/tcp, 22/tcp, 0.0.0.0:18444->18444/tcp, :::18444->18444/tcp   peerplaysqaenvironment_bitcoin-for-peerplays_1
5285abcd9311fd517b84fbd41072e519eae914706121ec9ce7a1f23dabaff1a3   ubuntu-for-peerplays    "/usr/sbin/sshd -D"                                               6 hours ago         Up 6 hours         0.0.0.0:2000->22/tcp, :::2000->22/tcp                                                                                                             peerplaysqaenvironment_ubuntu-for-peerplays_1
root@ip-172-31-35-225:/var/lib/docker/containers#
unlocked >>> get_object 1.39.1
get_object 1.39.1
[{
    "id": "1.39.1",
    "sidechain": "bitcoin",
    "object_id": "1.36.0",
    "transaction": "{\"tx_hex\":\"0200000001e4cd97b841890a124104465ec40cb0e9ea20dd8f514e0d9d5d0e5d05e37f15b20000000000ffffffff01e0b4154e020000002200206be4f5db474c935266d28d7ca2c9fb80145b0547b077fe3b7fc35b5238b0024600000000\",\"in_amounts\":[9900000000],\"redeem_script\":\"2103271d414611fa0b798330ff124d38f0d89714266f0ac6813b96c76a1f63eaadf2ac635167007c2103456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275ac635193687c210228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866ac635193687c210317941e4219548682fb8d8e172f0a8ce4d83ce21272435c85d598558c8e060b7fac635193687c210266065b27f7e3d3ad45b471b1cd4e02de73fc4737dc2679915a45e293c5adcf84ac635193687c21023821cc3da7be9e8cdceb8f146e9ddd78a9519875ecc5b42fe645af690544bccfac635193687c210229ff2b2106b76c27c393e82d71c20eec32bcf1f0cf1a9aca8a237269a67ff3e5ac635193687c21024d113381cc09deb8a6da62e0470644d1a06de82be2725b5052668c8845a4a8daac6351936855a268\"}",
    "signers": [{
        "son_id": "1.33.0",
        "weight": 1,
        "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
        "sidechain_public_keys": [[
            "bitcoin",
            "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275"
          ],[
            "peerplays",
            "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL"
          ],[
            "hive",
            "sonaccount01"
          ]
        ]
      },{
        "son_id": "1.33.1",
        "weight": 1,
        "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
        "sidechain_public_keys": [[
            "bitcoin",
            "0228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866"
          ],[
            "peerplays",
            "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22"
          ],[
            "hive",
            "sonaccount04"
          ]
        ]
      },{
        "son_id": "1.33.2",
        "weight": 1,
        "signing_key": "TEST7RMDnipLkFaQ4vtDyVvgyCedRoxyT9JWpAoM9mrE7rwVSyezoB",
        "sidechain_public_keys": [[
            "bitcoin",
            "0317941e4219548682fb8d8e172f0a8ce4d83ce21272435c85d598558c8e060b7f"
          ],[
            "peerplays",
            "TEST7RMDnipLkFaQ4vtDyVvgyCedRoxyT9JWpAoM9mrE7rwVSyezoB"
          ],[
            "hive",
            "sonaccount07"
          ]
        ]
      },{
        "son_id": "1.33.3",
        "weight": 1,
        "signing_key": "TEST51nSJ2q1C9htnYWfTv73JxEc4nBWPNxJtUGPGpD4XwxeLzAd8t",
        "sidechain_public_keys": [[
            "bitcoin",
            "0266065b27f7e3d3ad45b471b1cd4e02de73fc4737dc2679915a45e293c5adcf84"
          ],[
            "peerplays",
            "TEST51nSJ2q1C9htnYWfTv73JxEc4nBWPNxJtUGPGpD4XwxeLzAd8t"
          ],[
            "hive",
            "sonaccount08"
          ]
        ]
      },{
        "son_id": "1.33.4",
        "weight": 1,
        "signing_key": "TEST8EmMMvQdAPzcnxymRUpbYdg8fArUY473QosCQpuPtWXxXtoNp4",
        "sidechain_public_keys": [[
            "bitcoin",
            "023821cc3da7be9e8cdceb8f146e9ddd78a9519875ecc5b42fe645af690544bccf"
          ],[
            "peerplays",
            "TEST8EmMMvQdAPzcnxymRUpbYdg8fArUY473QosCQpuPtWXxXtoNp4"
          ],[
            "hive",
            "sonaccount09"
          ]
        ]
      },{
        "son_id": "1.33.5",
        "weight": 1,
        "signing_key": "TEST5815xbKy73Bx1LJWW1jg7GshWSEFWub3uoiEFP7FtP6z4YZtkU",
        "sidechain_public_keys": [[
            "bitcoin",
            "0229ff2b2106b76c27c393e82d71c20eec32bcf1f0cf1a9aca8a237269a67ff3e5"
          ],[
            "peerplays",
            "TEST5815xbKy73Bx1LJWW1jg7GshWSEFWub3uoiEFP7FtP6z4YZtkU"
          ],[
            "hive",
            "sonaccount10"
          ]
        ]
      },{
        "son_id": "1.33.6",
        "weight": 1,
        "signing_key": "TEST61qgG2v6JArygFiQCKypymxhBqg1wKmmbdkHeNkXhYDvkZmBtY",
        "sidechain_public_keys": [[
            "bitcoin",
            "024d113381cc09deb8a6da62e0470644d1a06de82be2725b5052668c8845a4a8da"
          ],[
            "peerplays",
            "TEST61qgG2v6JArygFiQCKypymxhBqg1wKmmbdkHeNkXhYDvkZmBtY"
          ],[
            "hive",
            "sonaccount11"
          ]
        ]
      }
    ],
    "signatures": [[
        "1.33.0",
        ""
      ],[
        "1.33.1",
        ""
      ],[
        "1.33.2",
        "[\"30440220723544cd6daf925800f4aeb90d054e3ba9b455b917aad2486814cbda37b6f1720220091c9ef92d50a28efbde97fe9c0dfad092d9fdbc5dd324f7b0d7beda0b6e73c901\"]"
      ],[
        "1.33.3",
        "[\"3045022100cafea06b1d9075f1020a88dac159cd93a27df257d88525d4ec17132d3feb9a9802203c0619e19a6096d2fca74a44b2cef294bbf108754031b524351aa4cfe9ebfcd001\"]"
      ],[
        "1.33.4",
        "[\"3045022100f5ac28fa7195076f0c94b22dbaa4cf4b4d029e3c22fbb5936fffd703614d9d4802205309a5face98d0da10e02b20eb7edb5f9d504f1d94fb79d395750bf6369b905f01\"]"
      ],[
        "1.33.5",
        "[\"3045022100e35b88874ec6ad27817203aeaab2f956c0449ac13576f32760716af23f1023cd022031ae687210adcb4a825ab87a2b25ff69a82cdbbf7ab88b72ecf4745463cc226401\"]"
      ],[
        "1.33.6",
        "[\"3044022004a65214b03938399f3dfaa9bcc6a13c8502118d3bbeb1cdb80871f0e19ea40202207ee436d6e58b6805cdfb3040bbb17c4802f671e375fd8ae922b3c69456f42d1d01\"]"
      ]
    ],
    "sidechain_transaction": "321230557efc77da46fc6f11f1eccd3fadcd5afd7338f8a871eaacdf9611beb2",
    "total_weight": 7,
    "current_weight": 5,
    "threshold": 5,
    "status": "sent"
  }
]
unlocked >>>

29sep_logs.tar.gz

peerplays witness restarted when BTC deposit was executed. ``` root@50e966b2728f:~/bitcoin-network# ./bitcoin-cli -regtest -rpcport=8332 -rpcuser=1 -rpcpassword=1 -rpcwallet=default sendtoaddress bcrt1q5vkalfewhvmdux56u4xakk56f5lq0rxm53y9qkq5jllhnz78mdsqva5uh2 99 "" "" false b2157fe3055d0e5d9d0d4e518fdd20eae9b00cc45e460441120a8941b897cde4 root@50e966b2728f:~/bitcoin-network# root@50e966b2728f:~/bitcoin-network# ./bitcoin-cli -regtest -rpcport=8332 -rpcuser=1 -rpcpassword=1 -rpcwallet=default generatetoaddress 6 bcrt1qhap2ay90flw6hvk7w0qtd209n8pfdnpkjdc2q6 [ "66a0876904fbd3888840defe535d40c28e1146d6c3fac930bdf56cddb6789025", "3895deb4701e1e802eb1c3b12e763a60a55bd201e5c56154ec2bd09f316aeb99", "15309126364cd594db0f444dbac303798bf5217b789269d88fd3dc2cd10d8590", "409f9716c91211f19fa25cc8507c59d76e5af599f9ebc8997bbc00a09736eac5", "03342ad966eae506e5a3ff5923cc0195213e0afa87935b45722febe0e2de356f", "7ac12cb15e85d26ca1eb6a247a9de5ada56b71507032c5a77b5a6e5b4bdf4166" ] root@50e966b2728f:~/bitcoin-network# root@50e966b2728f:~/bitcoin-network# ./bitcoin-cli -regtest -rpcport=8332 -rpcuser=1 -rpcpassword=1 -rpcwallet=default generatetoaddress 6 bcrt1qhap2ay90flw6hvk7w0qtd209n8pfdnpkjdc2q6 [ "24507522caf169bb5119f074d2a8ca486d43be1c27d0cbed6848142fd837840a", "2fc770acff5e32051852bb9fc084ac9d0267767245f9b5159f3f36f9e65b4776", "7964ef86bb62255c5eaa91c2483f4e792bd56afa4a8f567a31a593ca3e25a3ae", "3779cc9e53548b251381337d60953df934682ec649db9c281eac1ac179b59b8a", "68ea4500ee6eb9ae38d1c3724e95cf4eab4f6f5bca295598b60bb419270b6a6c", "3c9d4619293ce6e7917eab6a22da09bd8cf3804665b80cb793c925c1b1c84737" ] root@50e966b2728f:~/bitcoin-network# ``` ``` root@ip-172-31-35-225:/var/lib/docker/containers# sudo docker ps -a --no-trunc CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 2397fce482fec46451547ef90cc5761ed4414108c65db66983b7765e2fb8d57d faucet-for-peerplays "/home/peerplays/faucet/start.sh" About an hour ago Up About an hour 22/tcp, 0.0.0.0:5000->5000/tcp, :::5000->5000/tcp peerplaysqaenvironment_faucet-for-peerplays_1 cf4d8a43ebddb2265f9d079ef93f04660b646edd6b1d20e60253839587d771a8 redis:latest "docker-entrypoint.sh redis-server" About an hour ago Up About an hour 6379/tcp peerplaysqaenvironment_redis-for-peerplays_1 a7bd1d0f2ad576635f901baf1891573168e8b7cc3ca2e98e35098e6913f6a787 peerplays01 "./witness_node -d ./witness_node_data_dir --replay-blockchain" About an hour ago Up 12 minutes 0.0.0.0:8090->8090/tcp, :::8090->8090/tcp, 22/tcp, 0.0.0.0:9777->9777/tcp, :::9777->9777/tcp peerplaysqaenvironment_peerplays01_1 71daa3898ba9f90e9e830a3a09c82cc10de53c93a0f0ada14ad7815cfdef070a peerplays12 "./witness_node -d ./witness_node_data_dir --replay-blockchain" About an hour ago Up About an hour 22/tcp, 0.0.0.0:8101->8090/tcp, :::8101->8090/tcp, 0.0.0.0:9788->9777/tcp, :::9788->9777/tcp peerplaysqaenvironment_peerplays12_1 4700b3794d00e174eb2350ad95737ec4f74a69ce8443880cf0e35be2381ae468 peerplays07 "./witness_node -d ./witness_node_data_dir --replay-blockchain" About an hour ago Up About an hour 22/tcp, 0.0.0.0:8096->8090/tcp, :::8096->8090/tcp, 0.0.0.0:9783->9777/tcp, :::9783->9777/tcp peerplaysqaenvironment_peerplays07_1 579a13d19122d1ec472f4285f52623d676718bcb1f9eccc019abcb763d9e2901 peerplays09 "./witness_node -d ./witness_node_data_dir --replay-blockchain" About an hour ago Up 12 minutes 22/tcp, 0.0.0.0:8098->8090/tcp, :::8098->8090/tcp, 0.0.0.0:9785->9777/tcp, :::9785->9777/tcp peerplaysqaenvironment_peerplays09_1 f7a8dba4b6d4cb330aa87fd1d261f9d6d524a2e0cc3bf5409c0900391db20b2c peerplays03 "./witness_node -d ./witness_node_data_dir --replay-blockchain" About an hour ago Up About an hour 22/tcp, 0.0.0.0:8092->8090/tcp, :::8092->8090/tcp, 0.0.0.0:9779->9777/tcp, :::9779->9777/tcp peerplaysqaenvironment_peerplays03_1 0511eaa88a11ec5dbce7ddf1b1feaa6f286e98d792d9e5db874181759d2fe7ae peerplays14 "./witness_node -d ./witness_node_data_dir --replay-blockchain" About an hour ago Up About an hour 22/tcp, 0.0.0.0:8103->8090/tcp, :::8103->8090/tcp, 0.0.0.0:9790->9777/tcp, :::9790->9777/tcp peerplaysqaenvironment_peerplays14_1 54eb8e10d31a77e412a41df305bc0466c12a362e9eb4d5267973464e314c5563 peerplays10 "./witness_node -d ./witness_node_data_dir --replay-blockchain" About an hour ago Up 12 minutes 22/tcp, 0.0.0.0:8099->8090/tcp, :::8099->8090/tcp, 0.0.0.0:9786->9777/tcp, :::9786->9777/tcp peerplaysqaenvironment_peerplays10_1 63021f65d99c3af4b334657efd4f6fa4904fb4452bc644bfadcbbd5e4b2a5612 peerplays02 "./witness_node -d ./witness_node_data_dir --replay-blockchain" About an hour ago Up 12 minutes 22/tcp, 0.0.0.0:8091->8090/tcp, :::8091->8090/tcp, 0.0.0.0:9778->9777/tcp, :::9778->9777/tcp peerplaysqaenvironment_peerplays02_1 2a436cd22a81e7b4b5e3b678ae5f8115a9664c3480139694a74e570994bef151 peerplays06 "./witness_node -d ./witness_node_data_dir --replay-blockchain" About an hour ago Up About an hour 22/tcp, 0.0.0.0:8095->8090/tcp, :::8095->8090/tcp, 0.0.0.0:9782->9777/tcp, :::9782->9777/tcp peerplaysqaenvironment_peerplays06_1 af57877f4bfcafa0b44838c4edde0f57064a134aba95804a057f45ff4e2434d6 peerplays15 "./witness_node -d ./witness_node_data_dir --replay-blockchain" About an hour ago Up About an hour 22/tcp, 0.0.0.0:8104->8090/tcp, :::8104->8090/tcp, 0.0.0.0:9791->9777/tcp, :::9791->9777/tcp peerplaysqaenvironment_peerplays15_1 7e01845c74f632ca3f007f29d308216a085fcdcba978ab53218b0fceed7bee0a peerplays16 "./witness_node -d ./witness_node_data_dir --replay-blockchain" About an hour ago Up 12 minutes 22/tcp, 0.0.0.0:8105->8090/tcp, :::8105->8090/tcp, 0.0.0.0:9792->9777/tcp, :::9792->9777/tcp peerplaysqaenvironment_peerplays16_1 a0e43d1e4f221440031b65ce44480d84d467b21d163f3fc0674c157a874c35fb peerplays13 "./witness_node -d ./witness_node_data_dir --replay-blockchain" About an hour ago Up 12 minutes 22/tcp, 0.0.0.0:8102->8090/tcp, :::8102->8090/tcp, 0.0.0.0:9789->9777/tcp, :::9789->9777/tcp peerplaysqaenvironment_peerplays13_1 6409aa4d639fb90d355aeb371d31a79df2bdcbe8c78641d4e7b5b7594f24baa8 peerplays08 "./witness_node -d ./witness_node_data_dir --replay-blockchain" About an hour ago Up About an hour 22/tcp, 0.0.0.0:8097->8090/tcp, :::8097->8090/tcp, 0.0.0.0:9784->9777/tcp, :::9784->9777/tcp peerplaysqaenvironment_peerplays08_1 a09936a3e9b1c458c4e476bfba27e910c7a06b31a8c63d9f0917ef47a1d0f821 peerplays05 "./witness_node -d ./witness_node_data_dir --replay-blockchain" About an hour ago Up About an hour 22/tcp, 0.0.0.0:8094->8090/tcp, :::8094->8090/tcp, 0.0.0.0:9781->9777/tcp, :::9781->9777/tcp peerplaysqaenvironment_peerplays05_1 b56b672891f74227cebb773dccaea0a7b7d6bbb03327b19b3e8aae0e9b446a47 peerplays04 "./witness_node -d ./witness_node_data_dir --replay-blockchain" About an hour ago Up About an hour 22/tcp, 0.0.0.0:8093->8090/tcp, :::8093->8090/tcp, 0.0.0.0:9780->9777/tcp, :::9780->9777/tcp peerplaysqaenvironment_peerplays04_1 6888209f397f086f1498b745e9c8aeaced6f938a0fb73dfb6ff95ee95e94b53a peerplays11 "./witness_node -d ./witness_node_data_dir --replay-blockchain" About an hour ago Up About an hour 22/tcp, 0.0.0.0:8100->8090/tcp, :::8100->8090/tcp, 0.0.0.0:9787->9777/tcp, :::9787->9777/tcp peerplaysqaenvironment_peerplays11_1 2f4044f518a74c8aad10cf1c24962586f978d8f2f045c26e05ffbac574d64496 peerplays-base "/usr/sbin/sshd -D" About an hour ago Up About an hour 22/tcp, 8090/tcp, 9777/tcp peerplaysqaenvironment_peerplays-base_1 8e7832706f6350bc0600bea75eb02909e3f4682ea89cbe4ca25cdc3806ca4721 hive-for-peerplays "./hived -d ./hived_data_dir" 6 hours ago Up 6 hours 22/tcp, 0.0.0.0:28090-28091->28090-28091/tcp, :::28090-28091->28090-28091/tcp peerplaysqaenvironment_hive-for-peerplays_1 50e966b2728f6ab9ebdce084efd32c0efd39967407691610a3c99db2c5cb8e10 bitcoin-for-peerplays "./bitcoind -datadir=./network/" 6 hours ago Up 6 hours 0.0.0.0:8332->8332/tcp, :::8332->8332/tcp, 0.0.0.0:11111->11111/tcp, :::11111->11111/tcp, 22/tcp, 0.0.0.0:18444->18444/tcp, :::18444->18444/tcp peerplaysqaenvironment_bitcoin-for-peerplays_1 5285abcd9311fd517b84fbd41072e519eae914706121ec9ce7a1f23dabaff1a3 ubuntu-for-peerplays "/usr/sbin/sshd -D" 6 hours ago Up 6 hours 0.0.0.0:2000->22/tcp, :::2000->22/tcp peerplaysqaenvironment_ubuntu-for-peerplays_1 root@ip-172-31-35-225:/var/lib/docker/containers# ``` ``` unlocked >>> get_object 1.39.1 get_object 1.39.1 [{ "id": "1.39.1", "sidechain": "bitcoin", "object_id": "1.36.0", "transaction": "{\"tx_hex\":\"0200000001e4cd97b841890a124104465ec40cb0e9ea20dd8f514e0d9d5d0e5d05e37f15b20000000000ffffffff01e0b4154e020000002200206be4f5db474c935266d28d7ca2c9fb80145b0547b077fe3b7fc35b5238b0024600000000\",\"in_amounts\":[9900000000],\"redeem_script\":\"2103271d414611fa0b798330ff124d38f0d89714266f0ac6813b96c76a1f63eaadf2ac635167007c2103456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275ac635193687c210228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866ac635193687c210317941e4219548682fb8d8e172f0a8ce4d83ce21272435c85d598558c8e060b7fac635193687c210266065b27f7e3d3ad45b471b1cd4e02de73fc4737dc2679915a45e293c5adcf84ac635193687c21023821cc3da7be9e8cdceb8f146e9ddd78a9519875ecc5b42fe645af690544bccfac635193687c210229ff2b2106b76c27c393e82d71c20eec32bcf1f0cf1a9aca8a237269a67ff3e5ac635193687c21024d113381cc09deb8a6da62e0470644d1a06de82be2725b5052668c8845a4a8daac6351936855a268\"}", "signers": [{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "sidechain_public_keys": [[ "bitcoin", "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275" ],[ "peerplays", "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL" ],[ "hive", "sonaccount01" ] ] },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "sidechain_public_keys": [[ "bitcoin", "0228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866" ],[ "peerplays", "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22" ],[ "hive", "sonaccount04" ] ] },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST7RMDnipLkFaQ4vtDyVvgyCedRoxyT9JWpAoM9mrE7rwVSyezoB", "sidechain_public_keys": [[ "bitcoin", "0317941e4219548682fb8d8e172f0a8ce4d83ce21272435c85d598558c8e060b7f" ],[ "peerplays", "TEST7RMDnipLkFaQ4vtDyVvgyCedRoxyT9JWpAoM9mrE7rwVSyezoB" ],[ "hive", "sonaccount07" ] ] },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST51nSJ2q1C9htnYWfTv73JxEc4nBWPNxJtUGPGpD4XwxeLzAd8t", "sidechain_public_keys": [[ "bitcoin", "0266065b27f7e3d3ad45b471b1cd4e02de73fc4737dc2679915a45e293c5adcf84" ],[ "peerplays", "TEST51nSJ2q1C9htnYWfTv73JxEc4nBWPNxJtUGPGpD4XwxeLzAd8t" ],[ "hive", "sonaccount08" ] ] },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST8EmMMvQdAPzcnxymRUpbYdg8fArUY473QosCQpuPtWXxXtoNp4", "sidechain_public_keys": [[ "bitcoin", "023821cc3da7be9e8cdceb8f146e9ddd78a9519875ecc5b42fe645af690544bccf" ],[ "peerplays", "TEST8EmMMvQdAPzcnxymRUpbYdg8fArUY473QosCQpuPtWXxXtoNp4" ],[ "hive", "sonaccount09" ] ] },{ "son_id": "1.33.5", "weight": 1, "signing_key": "TEST5815xbKy73Bx1LJWW1jg7GshWSEFWub3uoiEFP7FtP6z4YZtkU", "sidechain_public_keys": [[ "bitcoin", "0229ff2b2106b76c27c393e82d71c20eec32bcf1f0cf1a9aca8a237269a67ff3e5" ],[ "peerplays", "TEST5815xbKy73Bx1LJWW1jg7GshWSEFWub3uoiEFP7FtP6z4YZtkU" ],[ "hive", "sonaccount10" ] ] },{ "son_id": "1.33.6", "weight": 1, "signing_key": "TEST61qgG2v6JArygFiQCKypymxhBqg1wKmmbdkHeNkXhYDvkZmBtY", "sidechain_public_keys": [[ "bitcoin", "024d113381cc09deb8a6da62e0470644d1a06de82be2725b5052668c8845a4a8da" ],[ "peerplays", "TEST61qgG2v6JArygFiQCKypymxhBqg1wKmmbdkHeNkXhYDvkZmBtY" ],[ "hive", "sonaccount11" ] ] } ], "signatures": [[ "1.33.0", "" ],[ "1.33.1", "" ],[ "1.33.2", "[\"30440220723544cd6daf925800f4aeb90d054e3ba9b455b917aad2486814cbda37b6f1720220091c9ef92d50a28efbde97fe9c0dfad092d9fdbc5dd324f7b0d7beda0b6e73c901\"]" ],[ "1.33.3", "[\"3045022100cafea06b1d9075f1020a88dac159cd93a27df257d88525d4ec17132d3feb9a9802203c0619e19a6096d2fca74a44b2cef294bbf108754031b524351aa4cfe9ebfcd001\"]" ],[ "1.33.4", "[\"3045022100f5ac28fa7195076f0c94b22dbaa4cf4b4d029e3c22fbb5936fffd703614d9d4802205309a5face98d0da10e02b20eb7edb5f9d504f1d94fb79d395750bf6369b905f01\"]" ],[ "1.33.5", "[\"3045022100e35b88874ec6ad27817203aeaab2f956c0449ac13576f32760716af23f1023cd022031ae687210adcb4a825ab87a2b25ff69a82cdbbf7ab88b72ecf4745463cc226401\"]" ],[ "1.33.6", "[\"3044022004a65214b03938399f3dfaa9bcc6a13c8502118d3bbeb1cdb80871f0e19ea40202207ee436d6e58b6805cdfb3040bbb17c4802f671e375fd8ae922b3c69456f42d1d01\"]" ] ], "sidechain_transaction": "321230557efc77da46fc6f11f1eccd3fadcd5afd7338f8a871eaacdf9611beb2", "total_weight": 7, "current_weight": 5, "threshold": 5, "status": "sent" } ] unlocked >>> ``` [29sep_logs.tar.gz](/uploads/f494d6cbd3327309ff6fa9baaf89f3ea/29sep_logs.tar.gz)
prandnum commented 2021-09-29 18:54:04 +00:00 (Migrated from gitlab.com)

assigned to @serkixenos

assigned to @serkixenos
prandnum commented 2021-09-29 18:54:39 +00:00 (Migrated from gitlab.com)

@bobinson @serkixenos

CC: @hbelakon

@bobinson @serkixenos CC: @hbelakon
bobinson commented 2021-09-30 07:53:36 +00:00 (Migrated from gitlab.com)

assigned to @sierra19XX

assigned to @sierra19XX
bobinson commented 2021-09-30 07:53:50 +00:00 (Migrated from gitlab.com)

unassigned @serkixenos

unassigned @serkixenos
bobinson commented 2021-09-30 07:55:13 +00:00 (Migrated from gitlab.com)

@serkixenos - Can you leave your notes on these problems, ie the BOOST Multi Index issues and others so that @sierra19XX can investigate this ?

Keep in mind that our priority remains as voting, Hive Test Nets and we can explore these errors along side the testnets.

@serkixenos - Can you leave your notes on these problems, ie the BOOST Multi Index issues and others so that @sierra19XX can investigate this ? Keep in mind that our priority remains as voting, Hive Test Nets and we can explore these errors along side the testnets.
bobinson commented 2021-09-30 07:57:20 +00:00 (Migrated from gitlab.com)

@prandnum

peerplays witness restarted when BTC deposit was executed.

Can you share additional information like your system configurations, OS versions, config files, any more logs, core dump or similar if any. Further, how did the witness restarted ? I assume this was running a systemd service ?

@prandnum > peerplays witness restarted when BTC deposit was executed. Can you share additional information like your system configurations, OS versions, config files, any more logs, core dump or similar if any. Further, how did the witness restarted ? I assume this was running a systemd service ?
prandnum commented 2021-09-30 18:40:58 +00:00 (Migrated from gitlab.com)

system configurations: 16 vcpus, 32gb ram
OS versions: ubuntu 18.04 VM, ubunt 20.04 ubuntu container
config files: attached
any more logs: none
core dump or similar if any: culdnt find
How did the witness restarted: it is mentioned in docker-compose yaml that it should restart.
The environment was setup using https://gitlab.com/PBSA/tools-libs/peerplays-utils

system_config_details.txt

peerplays-qa-environment.tar.gz

system configurations: 16 vcpus, 32gb ram OS versions: ubuntu 18.04 VM, ubunt 20.04 ubuntu container config files: attached any more logs: none core dump or similar if any: culdnt find How did the witness restarted: it is mentioned in docker-compose yaml that it should restart. The environment was setup using https://gitlab.com/PBSA/tools-libs/peerplays-utils [system_config_details.txt](/uploads/f9da573951ea7abe8d3ac93aac9225f7/system_config_details.txt) [peerplays-qa-environment.tar.gz](/uploads/1ec3c209e1aac57bf3896b8c7e646bb5/peerplays-qa-environment.tar.gz)
serkixenos commented 2021-09-30 20:07:24 +00:00 (Migrated from gitlab.com)

I believe this is related to overloading Bitcoin listener with multiple new blocks at the same time. Although this is not a real world scenario (Bitcoin node will never report more than one block at the same time), we should look into this, as it may indicate a problem with memory handling during event processing.

Listener (zmq_listener::handle_zmq) is executing in its own thread, and event processing (sidechain_net_handler_bitcoin::handle_event) is also executing in its own thread. In this test scenario, 6 threads running sidechain_net_handler_bitcoin::handle_event will be started in a very short time, so there might be a race condition or something there.

I believe this is related to overloading Bitcoin listener with multiple new blocks at the same time. Although this is not a real world scenario (Bitcoin node will never report more than one block at the same time), we should look into this, as it may indicate a problem with memory handling during event processing. Listener (zmq_listener::handle_zmq) is executing in its own thread, and event processing (sidechain_net_handler_bitcoin::handle_event) is also executing in its own thread. In this test scenario, 6 threads running sidechain_net_handler_bitcoin::handle_event will be started in a very short time, so there might be a race condition or something there.
serkixenos commented 2021-10-26 23:43:33 +00:00 (Migrated from gitlab.com)

assigned to @yviter

assigned to @yviter
hbelakon commented 2021-11-02 01:04:50 +00:00 (Migrated from gitlab.com)

@yviter @serkixenos please estimate this bug. I will put 8h/weight 1 for now..

@yviter @serkixenos please estimate this bug. I will put 8h/weight 1 for now..
hbelakon commented 2021-11-02 01:04:58 +00:00 (Migrated from gitlab.com)

changed time estimate to 8h

changed time estimate to 8h
yviter commented 2021-11-29 12:39:25 +00:00 (Migrated from gitlab.com)

Found potential reason. Temporary object was referenced:
sidechain_net_handler_bitcoin.cpp: 1807
auto & vins = extract_info_from_block(block);
changed to:
auto vins = extract_info_from_block(block);


Next: synchronization object was added to sidechain_net_handler_bitcoin::handle_event to serialize DB access

Found potential reason. Temporary object was referenced: sidechain_net_handler_bitcoin.cpp: 1807 auto & vins = extract_info_from_block(block); changed to: auto vins = extract_info_from_block(block); *** Next: synchronization object was added to sidechain_net_handler_bitcoin::handle_event to serialize DB access
serkixenos (Migrated from gitlab.com) closed this issue 2021-12-02 01:31:18 +00:00
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#183
No description provided.