Implement libbitcoin client #449

Closed
opened 2022-09-19 12:23:38 +00:00 by hirunda · 28 comments
hirunda commented 2022-09-19 12:23:38 +00:00 (Migrated from gitlab.com)

Replace all functionalities from RPC bitcoin client with libbitcoin client API.

Replace all functionalities from RPC bitcoin client with libbitcoin client API.
hirunda commented 2022-09-19 12:23:38 +00:00 (Migrated from gitlab.com)

assigned to @hirunda

assigned to @hirunda
hirunda commented 2022-09-28 16:56:26 +00:00 (Migrated from gitlab.com)

Besides the test described in #447 we should do here more regressive tests which will include the mainnet also.
I will leave this ticket in progress until we finish estimate smart fee.
@serkixenos do you agree ?

Besides the test described in #447 we should do here more regressive tests which will include the mainnet also. I will leave this ticket in progress until we finish estimate smart fee. @serkixenos do you agree ?
hirunda commented 2022-10-11 11:45:42 +00:00 (Migrated from gitlab.com)

mentioned in issue #447

mentioned in issue #447
hirunda commented 2022-10-11 11:47:52 +00:00 (Migrated from gitlab.com)

assigned to @wsalloum

assigned to @wsalloum
hirunda commented 2022-10-11 11:48:34 +00:00 (Migrated from gitlab.com)

@wsalloum Please use this ticket for testing libbitcoin, with the instructions from #447

@wsalloum Please use this ticket for testing libbitcoin, with the instructions from #447
wsalloum commented 2022-10-11 15:41:12 +00:00 (Migrated from gitlab.com)
  • I did deposit
    ./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 sendtoaddress 2N84SkmB5JfgGCvZ7QpSF43wWEbQ2EsLoMY 10 "" "" false

  • Then mine two times ./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 generatetoaddress 1 2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6

  • Peerplays terminated without exception

Peerplays-all-in-one_1            | 952165ms th_Q       sidechain_net_handler.cpp:155 sidechain_event_data ] sidechain_event_data:
peerplays-all-in-one_1            | 952165ms th_Q       sidechain_net_handler.cpp:156 sidechain_event_data ]   timestamp:                2022-10-11T15:15:51
peerplays-all-in-one_1            | 952165ms th_Q       sidechain_net_handler.cpp:157 sidechain_event_data ]   block_num:                220
peerplays-all-in-one_1            | 952165ms th_Q       sidechain_net_handler.cpp:158 sidechain_event_data ]   sidechain:                bitcoin
peerplays-all-in-one_1            | 952165ms th_Q       sidechain_net_handler.cpp:159 sidechain_event_data ]   sidechain_uid:            bitcoin-942a387e55445b0cee7472139773d9a70b692c83c0c061e9af5d3489269fdc4f-0
peerplays-all-in-one_1            | 952165ms th_Q       sidechain_net_handler.cpp:160 sidechain_event_data ]   sidechain_transaction_id: 942a387e55445b0cee7472139773d9a70b692c83c0c061e9af5d3489269fdc4f
peerplays-all-in-one_1            | 952165ms th_Q       sidechain_net_handler.cpp:161 sidechain_event_data ]   sidechain_from:           2N84SkmB5JfgGCvZ7QpSF43wWEbQ2EsLoMY
peerplays-all-in-one_1            | 952165ms th_Q       sidechain_net_handler.cpp:162 sidechain_event_data ]   sidechain_to:             
peerplays-all-in-one_1            | 952165ms th_Q       sidechain_net_handler.cpp:163 sidechain_event_data ]   sidechain_currency:       BTC
peerplays-all-in-one_1            | 952165ms th_Q       sidechain_net_handler.cpp:164 sidechain_event_data ]   sidechain_amount:         1000000000
peerplays-all-in-one_1            | 952165ms th_Q       sidechain_net_handler.cpp:165 sidechain_event_data ]   peerplays_from:           1.2.52
peerplays-all-in-one_1            | 952165ms th_Q       sidechain_net_handler.cpp:166 sidechain_event_data ]   peerplays_to:             1.2.19
peerplays-all-in-one_1            | 952165ms th_Q       sidechain_net_handler.cpp:167 sidechain_event_data ]   peerplays_asset:          {"amount":"40000000000","asset_id":"1.3.0"}
peerplays-all-in-one_1            | 954000ms th_a       witness.cpp:267               maybe_produce_block  ] slot: 1 scheduled_witness: 1.6.9 scheduled_time: 2022-10-11T15:15:54 now: 2022-10-11T15:15:54 
peerplays-all-in-one_1            | 954006ms th_a       witness.cpp:191               block_production_loo ] Generated block #221 with timestamp 2022-10-11T15:15:54 at time 2022-10-11T15:15:54
peerplays-all-in-one_1            | 954506ms th_S       peerplays_sidechain_plugin.cpp:520 son_processing       ] Scheduled SON: 1.33.2 Sidechain: bitcoin Now: 2022-10-11T15:15:51
peerplays-all-in-one_1            | 954506ms th_R       peerplays_sidechain_plugin.cpp:520 son_processing       ] Scheduled SON: 1.33.2 Sidechain: hive Now: 2022-10-11T15:15:51
peerplays-all-in-one_1            | 954507ms th_S       sidechain_net_handler.cpp:431 operator()           ] Deposit to process: {"id":"1.36.0","timestamp":"2022-10-11T15:15:51","block_num":220,"sidechain":"bitcoin","sidechain_uid":"bitcoin-942a387e55445b0cee7472139773d9a70b692c83c0c061e9af5d3489269fdc4f-0","sidechain_transaction_id":"942a387e55445b0cee7472139773d9a70b692c83c0c061e9af5d3489269fdc4f","sidechain_from":"2N84SkmB5JfgGCvZ7QpSF43wWEbQ2EsLoMY","sidechain_to":"","sidechain_currency":"BTC","sidechain_amount":1000000000,"peerplays_from":"1.2.52","peerplays_to":"1.2.19","peerplays_asset":{"amount":"40000000000","asset_id":"1.3.0"},"expected_reports":[["1.33.0",1],["1.33.1",1],["1.33.2",1],["1.33.3",1],["1.33.4",1]],"received_reports":["1.33.0","1.33.1","1.33.2","1.33.3","1.33.4"],"confirmed":true,"processed":false}

  • Run again ./cli_wallet in peerplays shell (while it was terminated) and check the balance again, nothing there
unlocked >>> list_account_balances account01
list_account_balances account01
49999950 TEST
1000000 PBTC
1000000 PEOS
1000000 PETH

- I did deposit `./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 sendtoaddress 2N84SkmB5JfgGCvZ7QpSF43wWEbQ2EsLoMY 10 "" "" false` - Then mine two times `./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 generatetoaddress 1 2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6` - Peerplays terminated without exception ``` Peerplays-all-in-one_1 | 952165ms th_Q sidechain_net_handler.cpp:155 sidechain_event_data ] sidechain_event_data: peerplays-all-in-one_1 | 952165ms th_Q sidechain_net_handler.cpp:156 sidechain_event_data ] timestamp: 2022-10-11T15:15:51 peerplays-all-in-one_1 | 952165ms th_Q sidechain_net_handler.cpp:157 sidechain_event_data ] block_num: 220 peerplays-all-in-one_1 | 952165ms th_Q sidechain_net_handler.cpp:158 sidechain_event_data ] sidechain: bitcoin peerplays-all-in-one_1 | 952165ms th_Q sidechain_net_handler.cpp:159 sidechain_event_data ] sidechain_uid: bitcoin-942a387e55445b0cee7472139773d9a70b692c83c0c061e9af5d3489269fdc4f-0 peerplays-all-in-one_1 | 952165ms th_Q sidechain_net_handler.cpp:160 sidechain_event_data ] sidechain_transaction_id: 942a387e55445b0cee7472139773d9a70b692c83c0c061e9af5d3489269fdc4f peerplays-all-in-one_1 | 952165ms th_Q sidechain_net_handler.cpp:161 sidechain_event_data ] sidechain_from: 2N84SkmB5JfgGCvZ7QpSF43wWEbQ2EsLoMY peerplays-all-in-one_1 | 952165ms th_Q sidechain_net_handler.cpp:162 sidechain_event_data ] sidechain_to: peerplays-all-in-one_1 | 952165ms th_Q sidechain_net_handler.cpp:163 sidechain_event_data ] sidechain_currency: BTC peerplays-all-in-one_1 | 952165ms th_Q sidechain_net_handler.cpp:164 sidechain_event_data ] sidechain_amount: 1000000000 peerplays-all-in-one_1 | 952165ms th_Q sidechain_net_handler.cpp:165 sidechain_event_data ] peerplays_from: 1.2.52 peerplays-all-in-one_1 | 952165ms th_Q sidechain_net_handler.cpp:166 sidechain_event_data ] peerplays_to: 1.2.19 peerplays-all-in-one_1 | 952165ms th_Q sidechain_net_handler.cpp:167 sidechain_event_data ] peerplays_asset: {"amount":"40000000000","asset_id":"1.3.0"} peerplays-all-in-one_1 | 954000ms th_a witness.cpp:267 maybe_produce_block ] slot: 1 scheduled_witness: 1.6.9 scheduled_time: 2022-10-11T15:15:54 now: 2022-10-11T15:15:54 peerplays-all-in-one_1 | 954006ms th_a witness.cpp:191 block_production_loo ] Generated block #221 with timestamp 2022-10-11T15:15:54 at time 2022-10-11T15:15:54 peerplays-all-in-one_1 | 954506ms th_S peerplays_sidechain_plugin.cpp:520 son_processing ] Scheduled SON: 1.33.2 Sidechain: bitcoin Now: 2022-10-11T15:15:51 peerplays-all-in-one_1 | 954506ms th_R peerplays_sidechain_plugin.cpp:520 son_processing ] Scheduled SON: 1.33.2 Sidechain: hive Now: 2022-10-11T15:15:51 peerplays-all-in-one_1 | 954507ms th_S sidechain_net_handler.cpp:431 operator() ] Deposit to process: {"id":"1.36.0","timestamp":"2022-10-11T15:15:51","block_num":220,"sidechain":"bitcoin","sidechain_uid":"bitcoin-942a387e55445b0cee7472139773d9a70b692c83c0c061e9af5d3489269fdc4f-0","sidechain_transaction_id":"942a387e55445b0cee7472139773d9a70b692c83c0c061e9af5d3489269fdc4f","sidechain_from":"2N84SkmB5JfgGCvZ7QpSF43wWEbQ2EsLoMY","sidechain_to":"","sidechain_currency":"BTC","sidechain_amount":1000000000,"peerplays_from":"1.2.52","peerplays_to":"1.2.19","peerplays_asset":{"amount":"40000000000","asset_id":"1.3.0"},"expected_reports":[["1.33.0",1],["1.33.1",1],["1.33.2",1],["1.33.3",1],["1.33.4",1]],"received_reports":["1.33.0","1.33.1","1.33.2","1.33.3","1.33.4"],"confirmed":true,"processed":false} ``` - Run again `./cli_wallet` in peerplays shell (while it was terminated) and check the balance again, nothing there ``` unlocked >>> list_account_balances account01 list_account_balances account01 49999950 TEST 1000000 PBTC 1000000 PEOS 1000000 PETH ```
hirunda commented 2022-10-11 15:51:49 +00:00 (Migrated from gitlab.com)

@wsalloum is this consistent ? How many times you have tried ? I am wondering are we missing something in configuration ?

@wsalloum is this consistent ? How many times you have tried ? I am wondering are we missing something in configuration ?
wsalloum commented 2022-10-11 16:15:38 +00:00 (Migrated from gitlab.com)

Yes, I didnt try everything from the beginning after the shell terminated, just tried again docker-compose up peerplays-all-in-one and after the mining again, it is terminated

  | 3441505ms th_�       peerplays_sidechain_plugin.cpp:520 son_processing       ] Scheduled SON: 1.33.4 Sidechain: bitcoin Now: 2022-10-11T15:57:18
peerplays-all-in-one_1            | 3441505ms th_�       peerplays_sidechain_plugin.cpp:520 son_processing       ] Scheduled SON: 1.33.4 Sidechain: hive Now: 2022-10-11T15:57:18
peerplays-all-in-one_1            | 3441507ms th_�       sidechain_net_handler.cpp:431 operator()           ] Deposit to process: {"id":"1.36.0","timestamp":"2022-10-11T15:57:18","block_num":1034,"sidechain":"bitcoin","sidechain_uid":"bitcoin-bea4405c7fd13afa1ba2c3474d4b2c968fbd896a43c6dc1d3698166713626cf9-1","sidechain_transaction_id":"bea4405c7fd13afa1ba2c3474d4b2c968fbd896a43c6dc1d3698166713626cf9","sidechain_from":"2N84SkmB5JfgGCvZ7QpSF43wWEbQ2EsLoMY","sidechain_to":"","sidechain_currency":"BTC","sidechain_amount":1000000000,"peerplays_from":"1.2.52","peerplays_to":"1.2.19","peerplays_asset":{"amount":"40000000000","asset_id":"1.3.0"},"expected_reports":[["1.33.0",1],["1.33.1",1],["1.33.2",1],["1.33.3",1],["1.33.4",1]],"received_reports":["1.33.0","1.33.1","1.33.2","1.33.3","1.33.4"],"confirmed":true,"processed":false}
bunker@backend-qa:~/peerplays-utils/peerplays-qa-environment$
Yes, I didnt try everything from the beginning after the shell terminated, just tried again `docker-compose up peerplays-all-in-one` and after the mining again, it is terminated ``` | 3441505ms th_� peerplays_sidechain_plugin.cpp:520 son_processing ] Scheduled SON: 1.33.4 Sidechain: bitcoin Now: 2022-10-11T15:57:18 peerplays-all-in-one_1 | 3441505ms th_� peerplays_sidechain_plugin.cpp:520 son_processing ] Scheduled SON: 1.33.4 Sidechain: hive Now: 2022-10-11T15:57:18 peerplays-all-in-one_1 | 3441507ms th_� sidechain_net_handler.cpp:431 operator() ] Deposit to process: {"id":"1.36.0","timestamp":"2022-10-11T15:57:18","block_num":1034,"sidechain":"bitcoin","sidechain_uid":"bitcoin-bea4405c7fd13afa1ba2c3474d4b2c968fbd896a43c6dc1d3698166713626cf9-1","sidechain_transaction_id":"bea4405c7fd13afa1ba2c3474d4b2c968fbd896a43c6dc1d3698166713626cf9","sidechain_from":"2N84SkmB5JfgGCvZ7QpSF43wWEbQ2EsLoMY","sidechain_to":"","sidechain_currency":"BTC","sidechain_amount":1000000000,"peerplays_from":"1.2.52","peerplays_to":"1.2.19","peerplays_asset":{"amount":"40000000000","asset_id":"1.3.0"},"expected_reports":[["1.33.0",1],["1.33.1",1],["1.33.2",1],["1.33.3",1],["1.33.4",1]],"received_reports":["1.33.0","1.33.1","1.33.2","1.33.3","1.33.4"],"confirmed":true,"processed":false} bunker@backend-qa:~/peerplays-utils/peerplays-qa-environment$ ```
hirunda commented 2022-10-11 16:27:13 +00:00 (Migrated from gitlab.com)

What's the output of command: get_sidechain_address_by_account_and_sidechain account01 1 before mining ?

What's the output of command: ` get_sidechain_address_by_account_and_sidechain account01 1` before mining ?
wsalloum commented 2022-10-11 16:31:00 +00:00 (Migrated from gitlab.com)
unlocked >>> get_sidechain_address_by_account_and_sidechain account01 1
get_sidechain_address_by_account_and_sidechain account01 1
{
  "id": "1.38.0",
  "sidechain_address_account": "1.2.52",
  "sidechain": "bitcoin",
  "deposit_public_key": "0368dc31b2b547c74f52abfc67c7fc768c68115d8ab96430d9bb4996fa660121cd",
  "deposit_address": "2N84SkmB5JfgGCvZ7QpSF43wWEbQ2EsLoMY",
  "deposit_address_data": "{ \"redeemScript\": \"210368dc31b2b547c74f52abfc67c7fc768c68115d8ab96430d9bb4996fa660121cdac635167007c2103456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275ac635193687c2102d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4ac635193687c21025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61ac635193687c210228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866ac635193687c21037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666ac6351936854a268\", \"witnessScript\": \"0020a3252a2204813812e990fdb50656dafb15211a68b94aacd76d78c203a6f2994c\" }",
  "withdraw_public_key": "02743d4f24f88095de7921b8a8486cb46f009b7c034daa931821fb688c9c1e42a2",
  "withdraw_address": "2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6",
  "valid_from": "2022-10-11T15:07:45",
  "expires": "2106-02-07T06:28:15"
}
``` unlocked >>> get_sidechain_address_by_account_and_sidechain account01 1 get_sidechain_address_by_account_and_sidechain account01 1 { "id": "1.38.0", "sidechain_address_account": "1.2.52", "sidechain": "bitcoin", "deposit_public_key": "0368dc31b2b547c74f52abfc67c7fc768c68115d8ab96430d9bb4996fa660121cd", "deposit_address": "2N84SkmB5JfgGCvZ7QpSF43wWEbQ2EsLoMY", "deposit_address_data": "{ \"redeemScript\": \"210368dc31b2b547c74f52abfc67c7fc768c68115d8ab96430d9bb4996fa660121cdac635167007c2103456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275ac635193687c2102d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4ac635193687c21025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61ac635193687c210228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866ac635193687c21037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666ac6351936854a268\", \"witnessScript\": \"0020a3252a2204813812e990fdb50656dafb15211a68b94aacd76d78c203a6f2994c\" }", "withdraw_public_key": "02743d4f24f88095de7921b8a8486cb46f009b7c034daa931821fb688c9c1e42a2", "withdraw_address": "2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6", "valid_from": "2022-10-11T15:07:45", "expires": "2106-02-07T06:28:15" } ```
hirunda commented 2022-10-11 16:33:59 +00:00 (Migrated from gitlab.com)

what's the output of libbicoin server ? What's the output of bitcoind ?

Did you run first bitcoind -> initnetwork -> libbitcoinserver -> peerplays_all_in_one -> initnetwork ?

Thanks

what's the output of libbicoin server ? What's the output of bitcoind ? Did you run first bitcoind -> initnetwork -> libbitcoinserver -> peerplays_all_in_one -> initnetwork ? Thanks
wsalloum commented 2022-10-11 16:36:49 +00:00 (Migrated from gitlab.com)
libbitcoinserver-for-peerplays_1  | 16:35:28.821038 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:35:28.821237 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:35:28.821261 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:35:28.821353 WARNING [network] Failure fetching new address: object does not exist

bitcoin-for-peerplays_1           | 2022-10-11T15:57:02Z [default] AddToWallet bea4405c7fd13afa1ba2c3474d4b2c968fbd896a43c6dc1d3698166713626cf9  newupdate
bitcoin-for-peerplays_1           | 2022-10-11T15:57:02Z [default] Submitting wtx bea4405c7fd13afa1ba2c3474d4b2c968fbd896a43c6dc1d3698166713626cf9 to mempool for relay
bitcoin-for-peerplays_1           | 2022-10-11T15:57:02Z [default] AddToWallet bea4405c7fd13afa1ba2c3474d4b2c968fbd896a43c6dc1d3698166713626cf9  
bitcoin-for-peerplays_1           | 2022-10-11T15:57:18Z CreateNewBlock(): block weight: 3639 txs: 1 fees: 13720 sigops 407
bitcoin-for-peerplays_1           | 2022-10-11T15:57:18Z UpdateTip: new best=3c8ded5229f0ae8a9ac5ef777c1f1ca4019ce642c5172f89b691c19529688812 height=1929 version=0x20000000 log2_work=11.914385 tx=1966 date='2022-10-11T15:57:18Z' progress=1.000000 cache=0.3MiB(1967txo)
bitcoin-for-peerplays_1           | 2022-10-11T15:57:18Z [default] AddToWallet 4b8b4565cd62ec082740aa5f4679c7db7105e9a760d4795c25a08ce1bfbc6a5b  new
bitcoin-for-peerplays_1           | 2022-10-11T15:57:18Z [default] AddToWallet bea4405c7fd13afa1ba2c3474d4b2c968fbd896a43c6dc1d3698166713626cf9  update
bitcoin-for-peerplays_1           | 2022-10-11T16:30:07Z Potential stale tip detected, will try using extra outbound peer (last tip update: 1969 seconds ago)
bitcoin-for-peerplays_1           | 2022-10-11T16:36:07Z CreateNewBlock(): block weight: 896 txs: 0 fees: 0 sigops 400
bitcoin-for-peerplays_1           | 2022-10-11T16:36:07Z UpdateTip: new best=03124a7a1f99c312d2b3b76553dc959a57e3becd1c264e1704be527b270715d9 height=1930 version=0x20000000 log2_work=11.915132 tx=1967 date='2022-10-11T16:36:07Z' progress=1.000000 cache=0.3MiB(1968txo)
bitcoin-for-peerplays_1           | 2022-10-11T16:36:07Z [default] AddToWallet 91d7bbd731d12dd372c96acb8b656fde6d923a34061a53570ba4c90890294175  new

``` libbitcoinserver-for-peerplays_1 | 16:35:28.821038 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:35:28.821237 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:35:28.821261 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:35:28.821353 WARNING [network] Failure fetching new address: object does not exist ``` ``` bitcoin-for-peerplays_1 | 2022-10-11T15:57:02Z [default] AddToWallet bea4405c7fd13afa1ba2c3474d4b2c968fbd896a43c6dc1d3698166713626cf9 newupdate bitcoin-for-peerplays_1 | 2022-10-11T15:57:02Z [default] Submitting wtx bea4405c7fd13afa1ba2c3474d4b2c968fbd896a43c6dc1d3698166713626cf9 to mempool for relay bitcoin-for-peerplays_1 | 2022-10-11T15:57:02Z [default] AddToWallet bea4405c7fd13afa1ba2c3474d4b2c968fbd896a43c6dc1d3698166713626cf9 bitcoin-for-peerplays_1 | 2022-10-11T15:57:18Z CreateNewBlock(): block weight: 3639 txs: 1 fees: 13720 sigops 407 bitcoin-for-peerplays_1 | 2022-10-11T15:57:18Z UpdateTip: new best=3c8ded5229f0ae8a9ac5ef777c1f1ca4019ce642c5172f89b691c19529688812 height=1929 version=0x20000000 log2_work=11.914385 tx=1966 date='2022-10-11T15:57:18Z' progress=1.000000 cache=0.3MiB(1967txo) bitcoin-for-peerplays_1 | 2022-10-11T15:57:18Z [default] AddToWallet 4b8b4565cd62ec082740aa5f4679c7db7105e9a760d4795c25a08ce1bfbc6a5b new bitcoin-for-peerplays_1 | 2022-10-11T15:57:18Z [default] AddToWallet bea4405c7fd13afa1ba2c3474d4b2c968fbd896a43c6dc1d3698166713626cf9 update bitcoin-for-peerplays_1 | 2022-10-11T16:30:07Z Potential stale tip detected, will try using extra outbound peer (last tip update: 1969 seconds ago) bitcoin-for-peerplays_1 | 2022-10-11T16:36:07Z CreateNewBlock(): block weight: 896 txs: 0 fees: 0 sigops 400 bitcoin-for-peerplays_1 | 2022-10-11T16:36:07Z UpdateTip: new best=03124a7a1f99c312d2b3b76553dc959a57e3becd1c264e1704be527b270715d9 height=1930 version=0x20000000 log2_work=11.915132 tx=1967 date='2022-10-11T16:36:07Z' progress=1.000000 cache=0.3MiB(1968txo) bitcoin-for-peerplays_1 | 2022-10-11T16:36:07Z [default] AddToWallet 91d7bbd731d12dd372c96acb8b656fde6d923a34061a53570ba4c90890294175 new ```
hirunda commented 2022-10-11 16:39:20 +00:00 (Migrated from gitlab.com)

Thanks @wsalloum , I recently added some code, maybe I missed something.
I will try on my side.

Thanks @wsalloum , I recently added some code, maybe I missed something. I will try on my side.
hirunda commented 2022-10-11 16:40:53 +00:00 (Migrated from gitlab.com)

Could you please try in meanwhile to set the parameter in witness node and to test old code path as described in instructions ?

Could you please try in meanwhile to set the parameter in witness node and to test old code path as described in instructions ?
wsalloum commented 2022-10-12 15:35:11 +00:00 (Migrated from gitlab.com)

Test Instractions:

  • docker-compose down

  • Change the Dockerfile00 by adding --use-bitcoind-client parameter in command. It should look like this:

CMD ["./witness_node", "-d", "./witness_node_data_dir", "--replay-blockchain", "--use-bitcoind-client", "true"]

  • docker-compose build peerplays-all-in-one

  • docker-compose up bitcoin-for-peerplays

  • docker exec -it peerplays-qa-environment_bitcoin-for-peerplays_1 /bin/bash

  • run init network in bitcoin shell : ./init-network.sh

  • docker-compose up libbitcoinserver-for-peerplays

  • docker-compose up hive-for-peerplays

  • docker-compose up peerplays-all-in-one

  • docker exec -it peerplays-qa-environment_peerplays-all-in-one_1 /bin/bash

  • run init network in peerplays shell: ./init-network.sh

  • Wait for SONs to be scheduled and first heartbeat

  • run ./cli_wallet in peerplays shell

  • unlock password

  • get_sidechain_address_by_account_and_sidechain account01 1

{

"id": "1.38.0",

"sidechain_address_account": "1.2.52",

"sidechain": "bitcoin",

"deposit_public_key": "0368dc31b2b547c74f52abfc67c7fc768c68115d8ab96430d9bb4996fa660121cd",

"deposit_address": "bcrt1q5vjj5gsysyup96vslk6sv4k6lv2jzxngh992e4md0rpq8fhjn9xqxc63hg",

"deposit_address_data": "{ "redeemScript": "210368dc31b2b547c74f52abfc67c7fc768c68115d8ab96430d9bb4996fa660121cdac635167007c2103456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275ac635193687c2102d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4ac635193687c21025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61ac635193687c210228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866ac635193687c21037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666ac6351936854a268", "witnessScript": "0020a3252a2204813812e990fdb50656dafb15211a68b94aacd76d78c203a6f2994c" }",

"withdraw_public_key": "02743d4f24f88095de7921b8a8486cb46f009b7c034daa931821fb688c9c1e42a2",

"withdraw_address": "2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6",

"valid_from": "2022-09-28T160021",

"expires": "2106-02-07T062815"

}
  • deposit ./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 sendtoaddress bcrt1q5vjj5gsysyup96vslk6sv4k6lv2jzxngh992e4md0rpq8fhjn9xqxc63hg 10 "" "" false

  • Mine two times ./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 generatetoaddress 1 2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6

  • check the account



unlocked >>> list_account_balances account01
list_account_balances account01
49999950 TEST
9.99980000 BTC
1000000 PBTC
1000000 PEOS
1000000 PETH

Test Instractions: - docker-compose down - Change the Dockerfile00 by adding --use-bitcoind-client parameter in command. It should look like this: CMD ["./witness_node", "-d", "./witness_node_data_dir", "--replay-blockchain", "--use-bitcoind-client", "true"] - docker-compose build peerplays-all-in-one - docker-compose up bitcoin-for-peerplays - docker exec -it peerplays-qa-environment_bitcoin-for-peerplays_1 /bin/bash - run init network in bitcoin shell : ./init-network.sh - docker-compose up libbitcoinserver-for-peerplays - docker-compose up hive-for-peerplays - docker-compose up peerplays-all-in-one - docker exec -it peerplays-qa-environment_peerplays-all-in-one_1 /bin/bash - run init network in peerplays shell: ./init-network.sh - Wait for SONs to be scheduled and first heartbeat - run ./cli_wallet in peerplays shell - unlock password - get_sidechain_address_by_account_and_sidechain account01 1 ``` { "id": "1.38.0", "sidechain_address_account": "1.2.52", "sidechain": "bitcoin", "deposit_public_key": "0368dc31b2b547c74f52abfc67c7fc768c68115d8ab96430d9bb4996fa660121cd", "deposit_address": "bcrt1q5vjj5gsysyup96vslk6sv4k6lv2jzxngh992e4md0rpq8fhjn9xqxc63hg", "deposit_address_data": "{ "redeemScript": "210368dc31b2b547c74f52abfc67c7fc768c68115d8ab96430d9bb4996fa660121cdac635167007c2103456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275ac635193687c2102d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4ac635193687c21025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61ac635193687c210228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866ac635193687c21037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666ac6351936854a268", "witnessScript": "0020a3252a2204813812e990fdb50656dafb15211a68b94aacd76d78c203a6f2994c" }", "withdraw_public_key": "02743d4f24f88095de7921b8a8486cb46f009b7c034daa931821fb688c9c1e42a2", "withdraw_address": "2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6", "valid_from": "2022-09-28T160021", "expires": "2106-02-07T062815" } ``` - deposit `./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 sendtoaddress bcrt1q5vjj5gsysyup96vslk6sv4k6lv2jzxngh992e4md0rpq8fhjn9xqxc63hg 10 "" "" false` - Mine two times `./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 generatetoaddress 1 2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6` - check the account ``` unlocked >>> list_account_balances account01 list_account_balances account01 49999950 TEST 9.99980000 BTC 1000000 PBTC 1000000 PEOS 1000000 PETH ```
hirunda commented 2022-10-17 17:15:37 +00:00 (Migrated from gitlab.com)

Hi @wsalloum , please retest with this branch: feature/libbitcoin-son-final (MR !164 )

Hi @wsalloum , please retest with this branch: feature/libbitcoin-son-final (MR !164 )
wsalloum commented 2022-10-17 19:36:35 +00:00 (Migrated from gitlab.com)

Do I need to change the Dockerfile00 also or keep it as it is? :
CMD \["./witness_node", "-d", "./witness_node_data_dir", "--replay-blockchain", "--use-bitcoind-client", "true"\]

Do I need to change the Dockerfile00 also or keep it as it is? : `CMD \["./witness_node", "-d", "./witness_node_data_dir", "--replay-blockchain", "--use-bitcoind-client", "true"\]`
hirunda commented 2022-10-17 23:05:38 +00:00 (Migrated from gitlab.com)

Hi @wsalloum ,

If you have command : "--use-bitcoind-client", "true" you are using bitcoind and old code path, not libbitcoin server.

If you remove the command mentioned above you are going to use libbitcoin server.

You should test both.

Please refers on the instructions in: #447

Hi @wsalloum , If you have command : `"--use-bitcoind-client", "true"` you are using bitcoind and old code path, not libbitcoin server. If you remove the command mentioned above you are going to use libbitcoin server. You should test both. Please refers on the instructions in: #447
wsalloum commented 2022-10-18 11:00:00 +00:00 (Migrated from gitlab.com)
  • Pull the latest changes from QA Environment
  • Checkout the branch feature/libbitcoin-son-final, by updating Dockerfile
# Clone Peerplays
RUN \
    cd src && \
    git clone https://gitlab.com/PBSA/peerplays.git && \
    cd peerplays && \
    #git checkout develop && \
    git checkout feature/libbitcoin-son-final && \
    git submodule update --init --recursive && \
    git branch --show-current && \
    git log --oneline -n 5

  • Check the Dockerfile00 # Peerplays CMD ["./witness_node", "-d", "./witness_node_data_dir", "--replay-blockchain"]
  • Follow the test steps here #447
  • I wasn't able to run peerplays without running the ethereum docker-compose up ethereum-for-peerplays
  • check account01, deposit_address is empty
unlocked >>> get_sidechain_address_by_account_and_sidechain account01 1
get_sidechain_address_by_account_and_sidechain account01 1
{
  "id": "1.38.0",
  "sidechain_address_account": "1.2.52",
  "sidechain": "bitcoin",
  "deposit_public_key": "0368dc31b2b547c74f52abfc67c7fc768c68115d8ab96430d9bb4996fa660121cd",
  "deposit_address": "",
  "deposit_address_data": "",
  "withdraw_public_key": "02743d4f24f88095de7921b8a8486cb46f009b7c034daa931821fb688c9c1e42a2",
  "withdraw_address": "2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6",
  "valid_from": "2022-10-18T10:46:45",
  "expires": "2106-02-07T06:28:15"
}

- Pull the latest changes from QA Environment - Checkout the branch feature/libbitcoin-son-final, by updating Dockerfile ``` # Clone Peerplays RUN \ cd src && \ git clone https://gitlab.com/PBSA/peerplays.git && \ cd peerplays && \ #git checkout develop && \ git checkout feature/libbitcoin-son-final && \ git submodule update --init --recursive && \ git branch --show-current && \ git log --oneline -n 5 ``` - Check the Dockerfile00 ```# Peerplays CMD ["./witness_node", "-d", "./witness_node_data_dir", "--replay-blockchain"]``` - Follow the test steps here [#447](https://gitlab.com/PBSA/peerplays/-/issues/447) - I wasn't able to run peerplays without running the ethereum `docker-compose up ethereum-for-peerplays` - check account01, deposit_address is empty ``` unlocked >>> get_sidechain_address_by_account_and_sidechain account01 1 get_sidechain_address_by_account_and_sidechain account01 1 { "id": "1.38.0", "sidechain_address_account": "1.2.52", "sidechain": "bitcoin", "deposit_public_key": "0368dc31b2b547c74f52abfc67c7fc768c68115d8ab96430d9bb4996fa660121cd", "deposit_address": "", "deposit_address_data": "", "withdraw_public_key": "02743d4f24f88095de7921b8a8486cb46f009b7c034daa931821fb688c9c1e42a2", "withdraw_address": "2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6", "valid_from": "2022-10-18T10:46:45", "expires": "2106-02-07T06:28:15" } ```
hirunda commented 2022-10-18 11:08:31 +00:00 (Migrated from gitlab.com)

@wsalloum , could you please follow instructions from #447 .
I think that I explained that you have to wait until son heartbeat comes, and son account get sidechain address.

From instructions :

  1. Checkout qa/453/libbictoin_client for peerplays QA env. [The branch is able to build libbitcoin client and it also checkout the branch with libbitcoin implementation]
  2. docker-compose build
  3. docker-compose up bitcoin-for-peerplays
  4. docker exec -it peerplays-qa-environment_bitcoin-for-peerplays_1 /bin/bash
  5. run init network in bitcoin shell : ./init-network.sh
  6. docker-compose up libbitcoinserver-for-peerplays
  7. docker-compose up hive-for-peerplays
  8. docker-compose up peerplays-all-in-one
  9. docker exec -it peerplays-qa-environment_peerplays-all-in-one_1 /bin/bash
  10. run init network in peerplays shell: ./init-network.sh

11. Wait for SONs to be scheduled and first heartbeat__

    1. run ./cli_wallet in peerplays shell
  1. unlock password
  2. get_sidechain_address_by_account_and_sidechain account01 1
@wsalloum , could you please follow instructions from #447 . I think that I explained that you have to wait until son heartbeat comes, and son account get sidechain address. From instructions : 1. Checkout qa/453/libbictoin_client for peerplays QA env. \[The branch is able to build libbitcoin client and it also checkout the branch with libbitcoin implementation\] 2. docker-compose build 3. docker-compose up bitcoin-for-peerplays 4. docker exec -it peerplays-qa-environment_bitcoin-for-peerplays_1 /bin/bash 5. run init network in bitcoin shell : ./init-network.sh 6. docker-compose up libbitcoinserver-for-peerplays 7. docker-compose up hive-for-peerplays 8. docker-compose up peerplays-all-in-one 9. docker exec -it peerplays-qa-environment_peerplays-all-in-one_1 /bin/bash 10. run init network in peerplays shell: ./init-network.sh **11. Wait for SONs to be scheduled and first heartbeat**__ 12. 12. run ./cli_wallet in peerplays shell 13. unlock password 14. get_sidechain_address_by_account_and_sidechain account01 1
wsalloum commented 2022-10-18 11:42:49 +00:00 (Migrated from gitlab.com)

Yes it is ok now, but can not deposit

unlocked >>> get_sidechain_address_by_account_and_sidechain account01 1
get_sidechain_address_by_account_and_sidechain account01 1
{
  "id": "1.38.0",
  "sidechain_address_account": "1.2.52",
  "sidechain": "bitcoin",
  "deposit_public_key": "0368dc31b2b547c74f52abfc67c7fc768c68115d8ab96430d9bb4996fa660121cd",
  "deposit_address": "3GWEh2F3hDAv18vZjgpNS6xF2FBrQENYXa",
  "deposit_address_data": "{ \"redeemScript\": \"210368dc31b2b547c74f52abfc67c7fc768c68115d8ab96430d9bb4996fa660121cdac635167007c2103456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275ac635193687c2102d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4ac635193687c21025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61ac635193687c210228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866ac635193687c21037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666ac6351936854a268\", \"witnessScript\": \"0020a3252a2204813812e990fdb50656dafb15211a68b94aacd76d78c203a6f2994c\" }",
  "withdraw_public_key": "02743d4f24f88095de7921b8a8486cb46f009b7c034daa931821fb688c9c1e42a2",
  "withdraw_address": "2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6",
  "valid_from": "2022-10-18T10:46:45",
  "expires": "2106-02-07T06:28:15"
}

root@b28825e46b8b:~/bitcoin-network# ./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 sendtoaddress 3GWEh2F3hDAv18vZjgpNS6xF2FBrQENYXa 10 "" "" false
error code: -5
error message:
Invalid Bitcoin address: 3GWEh2F3hDAv18vZjgpNS6xF2FBrQENYXa

Yes it is ok now, but can not deposit ``` unlocked >>> get_sidechain_address_by_account_and_sidechain account01 1 get_sidechain_address_by_account_and_sidechain account01 1 { "id": "1.38.0", "sidechain_address_account": "1.2.52", "sidechain": "bitcoin", "deposit_public_key": "0368dc31b2b547c74f52abfc67c7fc768c68115d8ab96430d9bb4996fa660121cd", "deposit_address": "3GWEh2F3hDAv18vZjgpNS6xF2FBrQENYXa", "deposit_address_data": "{ \"redeemScript\": \"210368dc31b2b547c74f52abfc67c7fc768c68115d8ab96430d9bb4996fa660121cdac635167007c2103456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275ac635193687c2102d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4ac635193687c21025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61ac635193687c210228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866ac635193687c21037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666ac6351936854a268\", \"witnessScript\": \"0020a3252a2204813812e990fdb50656dafb15211a68b94aacd76d78c203a6f2994c\" }", "withdraw_public_key": "02743d4f24f88095de7921b8a8486cb46f009b7c034daa931821fb688c9c1e42a2", "withdraw_address": "2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6", "valid_from": "2022-10-18T10:46:45", "expires": "2106-02-07T06:28:15" } ``` ``` root@b28825e46b8b:~/bitcoin-network# ./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 sendtoaddress 3GWEh2F3hDAv18vZjgpNS6xF2FBrQENYXa 10 "" "" false error code: -5 error message: Invalid Bitcoin address: 3GWEh2F3hDAv18vZjgpNS6xF2FBrQENYXa ```
hirunda commented 2022-10-18 17:55:16 +00:00 (Migrated from gitlab.com)

Hi @wsalloum , did you run init network script in bitcoind ?

Hi @wsalloum , did you run init network script in bitcoind ?
wsalloum commented 2022-10-18 20:38:29 +00:00 (Migrated from gitlab.com)

yes I did

yes I did
wsalloum commented 2022-10-18 21:14:25 +00:00 (Migrated from gitlab.com)

When I update Dockerfile00 to CMD ["./witness_node", "-d", "./witness_node_data_dir", "--replay-blockchain", "--use-bitcoind-client", "true"]

  • docker-compose build peerplays-all-in-one
  • docker-compose up bitcoin-for-peerplays
  • docker exec -it peerplays-qa-environment_bitcoin-for-peerplays_1 /bin/bash
  • run init network in bitcoin shell : ./init-network.sh
  • docker-compose up hive-for-peerplays
  • docker-compose up peerplays-all-in-one
  • docker exec -it peerplays-qa-environment_peerplays-all-in-one_1 /bin/bash
  • run init network in peerplays shell: ./init-network.sh
  • get_sidechain_address_by_account_and_sidechain account01 1
unlocked >>> get_sidechain_address_by_account_and_sidechain account01 1
get_sidechain_address_by_account_and_sidechain account01 1
{
  "id": "1.38.0",
  "sidechain_address_account": "1.2.52",
  "sidechain": "bitcoin",
  "deposit_public_key": "0368dc31b2b547c74f52abfc67c7fc768c68115d8ab96430d9bb4996fa660121cd",
  "deposit_address": "bcrt1q5vjj5gsysyup96vslk6sv4k6lv2jzxngh992e4md0rpq8fhjn9xqxc63hg",
  "deposit_address_data": "{ \"redeemScript\": \"210368dc31b2b547c74f52abfc67c7fc768c68115d8ab96430d9bb4996fa660121cdac635167007c2103456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275ac635193687c2102d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4ac635193687c21025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61ac635193687c210228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866ac635193687c21037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666ac6351936854a268\", \"witnessScript\": \"0020a3252a2204813812e990fdb50656dafb15211a68b94aacd76d78c203a6f2994c\" }",
  "withdraw_public_key": "02743d4f24f88095de7921b8a8486cb46f009b7c034daa931821fb688c9c1e42a2",
  "withdraw_address": "2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6",
  "valid_from": "2022-10-18T12:35:03",
  "expires": "2106-02-07T06:28:15"
}

  • ./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 sendtoaddress bcrt1q5vjj5gsysyup96vslk6sv4k6lv2jzxngh992e4md0rpq8fhjn9xqxc63hg 10 "" "" false
  • Mine two times : ./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 generatetoaddress 1 2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6
  • check the balance
list_account_balances account01
list_account_balances account01
49999950 TEST
1000000 PBTC
1000000 PEOS
1000000 PETH

When I update Dockerfile00 to `CMD ["./witness_node", "-d", "./witness_node_data_dir", "--replay-blockchain", "--use-bitcoind-client", "true"]` - docker-compose build peerplays-all-in-one - docker-compose up bitcoin-for-peerplays - docker exec -it peerplays-qa-environment_bitcoin-for-peerplays_1 /bin/bash - run init network in bitcoin shell : ./init-network.sh - docker-compose up hive-for-peerplays - docker-compose up peerplays-all-in-one - docker exec -it peerplays-qa-environment_peerplays-all-in-one_1 /bin/bash - run init network in peerplays shell: ./init-network.sh - get_sidechain_address_by_account_and_sidechain account01 1 ``` unlocked >>> get_sidechain_address_by_account_and_sidechain account01 1 get_sidechain_address_by_account_and_sidechain account01 1 { "id": "1.38.0", "sidechain_address_account": "1.2.52", "sidechain": "bitcoin", "deposit_public_key": "0368dc31b2b547c74f52abfc67c7fc768c68115d8ab96430d9bb4996fa660121cd", "deposit_address": "bcrt1q5vjj5gsysyup96vslk6sv4k6lv2jzxngh992e4md0rpq8fhjn9xqxc63hg", "deposit_address_data": "{ \"redeemScript\": \"210368dc31b2b547c74f52abfc67c7fc768c68115d8ab96430d9bb4996fa660121cdac635167007c2103456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275ac635193687c2102d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4ac635193687c21025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61ac635193687c210228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866ac635193687c21037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666ac6351936854a268\", \"witnessScript\": \"0020a3252a2204813812e990fdb50656dafb15211a68b94aacd76d78c203a6f2994c\" }", "withdraw_public_key": "02743d4f24f88095de7921b8a8486cb46f009b7c034daa931821fb688c9c1e42a2", "withdraw_address": "2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6", "valid_from": "2022-10-18T12:35:03", "expires": "2106-02-07T06:28:15" } ``` - `./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 sendtoaddress bcrt1q5vjj5gsysyup96vslk6sv4k6lv2jzxngh992e4md0rpq8fhjn9xqxc63hg 10 "" "" false` - Mine two times : `./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 generatetoaddress 1 2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6` - check the balance ``` list_account_balances account01 list_account_balances account01 49999950 TEST 1000000 PBTC 1000000 PEOS 1000000 PETH ```
hirunda commented 2022-10-19 12:09:30 +00:00 (Migrated from gitlab.com)

Hi @wsalloum

  1. For the bitcoind , sometimes you have to mine more than once to deposit. Please try to mine more than once and see results.
  2. For libbitcoin, I took a look at the sidchain address and it seems that you got mainnet (3GWEh2F3hDAv18vZjgpNS6xF2FBrQENYXa) address which should not be the case. Could you please double check did you run libbitcoin server within docker in the order as described in instructions.
Hi @wsalloum 1. For the bitcoind , sometimes you have to mine more than once to deposit. Please try to mine more than once and see results. 2. For libbitcoin, I took a look at the sidchain address and it seems that you got mainnet (`3GWEh2F3hDAv18vZjgpNS6xF2FBrQENYXa`) address which should not be the case. Could you please double check did you run libbitcoin server within docker in the order as described in instructions.
wsalloum commented 2022-10-20 10:22:08 +00:00 (Migrated from gitlab.com)

Test instructions by using bitcoind and old code path,

  • docker-compose down

  • Change the Dockerfile00 by adding --use-bitcoind-client parameter in command. It should look like this:
    CMD \["./witness_node", "-d", "./witness_node_data_dir", "--replay-blockchain", "--use-bitcoind-client", "true"\]

  • docker-compose build peerplays-all-in-one

  • docker-compose up bitcoin-for-peerplays

  • docker exec -it peerplays-qa-environment_bitcoin-for-peerplays_1 /bin/bash

  • run init network in bitcoin shell : ./init-network.sh

  • docker-compose up hive-for-peerplays

  • docker-compose up ethereum-for-peerplays

  • docker-compose up peerplays-all-in-one

  • docker exec -it peerplays-qa-environment_peerplays-all-in-one_1 /bin/bash

  • run init network in peerplays shell: ./init-network.sh

  • Wait for SONs to be scheduled and first heartbeat

  • run ./cli_wallet in peerplays shell

  • unlock password

  • get_sidechain_address_by_account_and_sidechain account01 1

unlocked >>> get_sidechain_address_by_account_and_sidechain account01 1
get_sidechain_address_by_account_and_sidechain account01 1
{
  "id": "1.38.0",
  "sidechain_address_account": "1.2.52",
  "sidechain": "bitcoin",
  "deposit_public_key": "0368dc31b2b547c74f52abfc67c7fc768c68115d8ab96430d9bb4996fa660121cd",
  "deposit_address": "bcrt1q5vjj5gsysyup96vslk6sv4k6lv2jzxngh992e4md0rpq8fhjn9xqxc63hg",
  "deposit_address_data": "{ \"redeemScript\": \"210368dc31b2b547c74f52abfc67c7fc768c68115d8ab96430d9bb4996fa660121cdac635167007c2103456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275ac635193687c2102d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4ac635193687c21025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61ac635193687c210228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866ac635193687c21037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666ac6351936854a268\", \"witnessScript\": \"0020a3252a2204813812e990fdb50656dafb15211a68b94aacd76d78c203a6f2994c\" }",
  "withdraw_public_key": "02743d4f24f88095de7921b8a8486cb46f009b7c034daa931821fb688c9c1e42a2",
  "withdraw_address": "2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6",
  "valid_from": "2022-10-20T09:53:45",
  "expires": "2106-02-07T06:28:15"
}

  • deposit ./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 sendtoaddress bcrt1q5vjj5gsysyup96vslk6sv4k6lv2jzxngh992e4md0rpq8fhjn9xqxc63hg 10 "" "" false

  • Mine 3 times

root@ee7e5e8a7006:~/bitcoin-network# ./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 generatetoaddress 1 2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6
[
  "2299f7b0061e9db598ee54ec9453ec230bc6fb1aaf5ce9bb2422809c56159c14"
]
root@ee7e5e8a7006:~/bitcoin-network# ./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 generatetoaddress 1 2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6
[
  "0d2d1962886952f36c1eefcc46a13564ff2c8135a9d803b57432447f37f35f3e"
]
root@ee7e5e8a7006:~/bitcoin-network# ./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 generatetoaddress 1 2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6
[
  "608a9ef58ad405d3da901ecbfd512c44eb27361090a92b4cb287f3b3b157ef9c"
]
  • check the balance
unlocked >>> list_account_balances account01
list_account_balances account01
49999950 TEST
9.99980000 BTC
1000000 PBTC
1000000 PEOS
1000000 PETH

Test instructions by using bitcoind and old code path, - docker-compose down - Change the Dockerfile00 by adding --use-bitcoind-client parameter in command. It should look like this: `CMD \["./witness_node", "-d", "./witness_node_data_dir", "--replay-blockchain", "--use-bitcoind-client", "true"\]` - docker-compose build peerplays-all-in-one - docker-compose up bitcoin-for-peerplays - docker exec -it peerplays-qa-environment_bitcoin-for-peerplays_1 /bin/bash - run init network in bitcoin shell : ./init-network.sh - docker-compose up hive-for-peerplays - docker-compose up ethereum-for-peerplays - docker-compose up peerplays-all-in-one - docker exec -it peerplays-qa-environment_peerplays-all-in-one_1 /bin/bash - run init network in peerplays shell: ./init-network.sh - Wait for SONs to be scheduled and first heartbeat - run ./cli_wallet in peerplays shell - unlock password - get_sidechain_address_by_account_and_sidechain account01 1 ``` unlocked >>> get_sidechain_address_by_account_and_sidechain account01 1 get_sidechain_address_by_account_and_sidechain account01 1 { "id": "1.38.0", "sidechain_address_account": "1.2.52", "sidechain": "bitcoin", "deposit_public_key": "0368dc31b2b547c74f52abfc67c7fc768c68115d8ab96430d9bb4996fa660121cd", "deposit_address": "bcrt1q5vjj5gsysyup96vslk6sv4k6lv2jzxngh992e4md0rpq8fhjn9xqxc63hg", "deposit_address_data": "{ \"redeemScript\": \"210368dc31b2b547c74f52abfc67c7fc768c68115d8ab96430d9bb4996fa660121cdac635167007c2103456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275ac635193687c2102d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4ac635193687c21025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61ac635193687c210228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866ac635193687c21037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666ac6351936854a268\", \"witnessScript\": \"0020a3252a2204813812e990fdb50656dafb15211a68b94aacd76d78c203a6f2994c\" }", "withdraw_public_key": "02743d4f24f88095de7921b8a8486cb46f009b7c034daa931821fb688c9c1e42a2", "withdraw_address": "2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6", "valid_from": "2022-10-20T09:53:45", "expires": "2106-02-07T06:28:15" } ``` - deposit ./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 sendtoaddress bcrt1q5vjj5gsysyup96vslk6sv4k6lv2jzxngh992e4md0rpq8fhjn9xqxc63hg 10 "" "" false - Mine 3 times ``` root@ee7e5e8a7006:~/bitcoin-network# ./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 generatetoaddress 1 2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6 [ "2299f7b0061e9db598ee54ec9453ec230bc6fb1aaf5ce9bb2422809c56159c14" ] root@ee7e5e8a7006:~/bitcoin-network# ./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 generatetoaddress 1 2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6 [ "0d2d1962886952f36c1eefcc46a13564ff2c8135a9d803b57432447f37f35f3e" ] root@ee7e5e8a7006:~/bitcoin-network# ./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 generatetoaddress 1 2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6 [ "608a9ef58ad405d3da901ecbfd512c44eb27361090a92b4cb287f3b3b157ef9c" ] ``` - check the balance ``` unlocked >>> list_account_balances account01 list_account_balances account01 49999950 TEST 9.99980000 BTC 1000000 PBTC 1000000 PEOS 1000000 PETH ```
hirunda commented 2022-10-25 20:24:12 +00:00 (Migrated from gitlab.com)

Hi @wsalloum , I just tested on my side.
Could you apply https://gitlab.com/PBSA/tools-libs/peerplays-utils/-/merge_requests/21 on master docker and rebuild it ? Please give a try and let me know about deposit address you are getting.
It should be like : 2N84SkmB5JfgGCvZ7QpSF43wWEbQ2EsLoMY

Please ensure to run peerplays-all-in-one at the end, after libbitcoin-serve ...

Verify that in config.ini you have these lines:

libbitcoin-server-ip = 10.11.12.204
libbitcoin-server-zmq-port = 9093
Hi @wsalloum , I just tested on my side. Could you apply https://gitlab.com/PBSA/tools-libs/peerplays-utils/-/merge_requests/21 on master docker and rebuild it ? Please give a try and let me know about deposit address you are getting. It should be like : `2N84SkmB5JfgGCvZ7QpSF43wWEbQ2EsLoMY` Please ensure to run peerplays-all-in-one at the end, after libbitcoin-serve ... Verify that in config.ini you have these lines: ``` libbitcoin-server-ip = 10.11.12.204 libbitcoin-server-zmq-port = 9093 ```
wsalloum commented 2022-10-26 14:09:34 +00:00 (Migrated from gitlab.com)

Test instructions:

  • Checkout the branch qa/453/libbictoin_client
    git checkout qa/453/libbictoin_client
  • Follow the test steps #447
  • Check account01

unlocked >>>     get_sidechain_address_by_account_and_sidechain account01 1
    get_sidechain_address_by_account_and_sidechain account01 1
{
  "id": "1.38.0",
  "sidechain_address_account": "1.2.52",
  "sidechain": "bitcoin",
  "deposit_public_key": "0368dc31b2b547c74f52abfc67c7fc768c68115d8ab96430d9bb4996fa660121cd",
  "deposit_address": "2N84SkmB5JfgGCvZ7QpSF43wWEbQ2EsLoMY",
  "deposit_address_data": "{ \"redeemScript\": \"210368dc31b2b547c74f52abfc67c7fc768c68115d8ab96430d9bb4996fa660121cdac635167007c2103456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275ac635193687c2102d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4ac635193687c21025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61ac635193687c210228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866ac635193687c21037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666ac6351936854a268\", \"witnessScript\": \"0020a3252a2204813812e990fdb50656dafb15211a68b94aacd76d78c203a6f2994c\" }",
  "withdraw_public_key": "02743d4f24f88095de7921b8a8486cb46f009b7c034daa931821fb688c9c1e42a2",
  "withdraw_address": "2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6",
  "valid_from": "2022-10-26T10:29:21",
  "expires": "2106-02-07T06:28:15"
}

  • Check the balance

unlocked >>> list_account_balances account01                                
list_account_balances account01 
49999950 TEST
1000000 PBTC
1000000 PEOS
1000000 PETH
  • Deposit and mine two times
root@f8819e4c434f:~/bitcoin-network# ./bitcoin-cli -rpcuser=1 -rpcwallet="default"   -rpcpassword=1 sendtoaddress 2N84SkmB5JfgGCvZ7QpSF43wWEbQ2EsLoMY    10 "" "" false
668bed2ed242f2b1eda6214d6a5b7f332e9e6c0dbf9af084627dc2176cd29c16
root@f8819e4c434f:~/bitcoin-network# ./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 generatetoaddress 1 2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6
[
  "37ac5e9e73ca0b7072fbfeca15166edc3697bd6a439b7f1722d83ea86ace766b"
]
root@f8819e4c434f:~/bitcoin-network# ./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 generatetoaddress 1 2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6
[
  "1cce5f04df8f214fb0777bb9fe78af41594280b174d081b0aa7bc7681f64f7ef"
]
root@f8819e4c434f:~/bitcoin-network# 
  • Check the balance
unlocked >>> list_account_balances account01 
list_account_balances account01 
49999950 TEST
9.99996999 BTC
1000000 PBTC
1000000 PEOS
1000000 PETH
  • Just a note: I didnt change config.ini, when I changed the config.ini, and added the
libbitcoin-server-ip = 10.11.12.204
libbitcoin-server-zmq-port = 9093

I got the following error :

bunker@backend-qa:~/peerplays-utils/peerplays-qa-environment$ docker-compose up peerplays-all-in-one
Starting peerplays-qa-environment_ubuntu-for-peerplays_1 ... done
Starting peerplays-qa-environment_peerplays-base_1       ... done
peerplays-qa-environment_peerplays-all-in-one_1 is up-to-date
Attaching to peerplays-qa-environment_peerplays-all-in-one_1
peerplays-all-in-one_1            | terminate called after throwing an instance of 'boost::wrapexcept<boost::program_options::multiple_occurrences>'
peerplays-all-in-one_1            |   what():  option 'libbitcoin-server-ip' cannot be specified more than once
peerplays-all-in-one_1            | terminate called after throwing an instance of 'boost::wrapexcept<boost::program_options::multiple_occurrences>'
peerplays-all-in-one_1            |   what():  option 'libbitcoin-server-ip' cannot be specified more than once
peerplays-all-in-one_1            | terminate called after throwing an instance of 'boost::wrapexcept<boost::program_options::multiple_occurrences>'
peerplays-all-in-one_1            |   what():  option 'libbitcoin-server-ip' cannot be specified more than once
peerplays-all-in-one_1            | terminate called after throwing an instance of 'boost::wrapexcept<boost::program_options::multiple_occurrences>'
peerplays-all-in-one_1            |   what():  option 'libbitcoin-server-ip' cannot be specified more than once
peerplays-all-in-one_1            | terminate called after throwing an instance of 'boost::wrapexcept<boost::program_options::multiple_occurrences>'
peerplays-all-in-one_1            |   what():  option 'libbitcoin-server-ip' cannot be specified more than once
peerplays-all-in-one_1            | terminate called after throwing an instance of 'boost::wrapexcept<boost::program_options::multiple_occurrences>'
peerplays-all-in-one_1            |   what():  option 'libbitcoin-server-ip' cannot be specified more than once
peerplays-all-in-one_1            | terminate called after throwing an instance of 'boost::wrapexcept<boost::program_options::multiple_occurrences>'
peerplays-all-in-one_1            |   what():  option 'libbitcoin-server-ip' cannot be specified more than once
peerplays-all-in-one_1            | terminate called after throwing an instance of 'boost::wrapexcept<boost::program_options::multiple_occurrences>'
peerplays-all-in-one_1            |   what():  option 'libbitcoin-server-ip' cannot be specified more than once
peerplays-qa-environment_peerplays-all-in-one_1 exited with code 139


./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 generatetoaddress 1 2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6
Test instructions: - Checkout the branch qa/453/libbictoin_client `git checkout qa/453/libbictoin_client` - Follow the test steps [#447](https://gitlab.com/PBSA/peerplays/-/issues/447) - Check account01 ``` unlocked >>> get_sidechain_address_by_account_and_sidechain account01 1 get_sidechain_address_by_account_and_sidechain account01 1 { "id": "1.38.0", "sidechain_address_account": "1.2.52", "sidechain": "bitcoin", "deposit_public_key": "0368dc31b2b547c74f52abfc67c7fc768c68115d8ab96430d9bb4996fa660121cd", "deposit_address": "2N84SkmB5JfgGCvZ7QpSF43wWEbQ2EsLoMY", "deposit_address_data": "{ \"redeemScript\": \"210368dc31b2b547c74f52abfc67c7fc768c68115d8ab96430d9bb4996fa660121cdac635167007c2103456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275ac635193687c2102d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4ac635193687c21025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61ac635193687c210228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866ac635193687c21037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666ac6351936854a268\", \"witnessScript\": \"0020a3252a2204813812e990fdb50656dafb15211a68b94aacd76d78c203a6f2994c\" }", "withdraw_public_key": "02743d4f24f88095de7921b8a8486cb46f009b7c034daa931821fb688c9c1e42a2", "withdraw_address": "2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6", "valid_from": "2022-10-26T10:29:21", "expires": "2106-02-07T06:28:15" } ``` - Check the balance ``` unlocked >>> list_account_balances account01 list_account_balances account01 49999950 TEST 1000000 PBTC 1000000 PEOS 1000000 PETH ``` - Deposit and mine two times ``` root@f8819e4c434f:~/bitcoin-network# ./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 sendtoaddress 2N84SkmB5JfgGCvZ7QpSF43wWEbQ2EsLoMY 10 "" "" false 668bed2ed242f2b1eda6214d6a5b7f332e9e6c0dbf9af084627dc2176cd29c16 root@f8819e4c434f:~/bitcoin-network# ./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 generatetoaddress 1 2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6 [ "37ac5e9e73ca0b7072fbfeca15166edc3697bd6a439b7f1722d83ea86ace766b" ] root@f8819e4c434f:~/bitcoin-network# ./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 generatetoaddress 1 2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6 [ "1cce5f04df8f214fb0777bb9fe78af41594280b174d081b0aa7bc7681f64f7ef" ] root@f8819e4c434f:~/bitcoin-network# ``` - Check the balance ``` unlocked >>> list_account_balances account01 list_account_balances account01 49999950 TEST 9.99996999 BTC 1000000 PBTC 1000000 PEOS 1000000 PETH ``` - Just a note: I didnt change config.ini, when I changed the config.ini, and added the ``` libbitcoin-server-ip = 10.11.12.204 libbitcoin-server-zmq-port = 9093 ``` I got the following error : ``` bunker@backend-qa:~/peerplays-utils/peerplays-qa-environment$ docker-compose up peerplays-all-in-one Starting peerplays-qa-environment_ubuntu-for-peerplays_1 ... done Starting peerplays-qa-environment_peerplays-base_1 ... done peerplays-qa-environment_peerplays-all-in-one_1 is up-to-date Attaching to peerplays-qa-environment_peerplays-all-in-one_1 peerplays-all-in-one_1 | terminate called after throwing an instance of 'boost::wrapexcept<boost::program_options::multiple_occurrences>' peerplays-all-in-one_1 | what(): option 'libbitcoin-server-ip' cannot be specified more than once peerplays-all-in-one_1 | terminate called after throwing an instance of 'boost::wrapexcept<boost::program_options::multiple_occurrences>' peerplays-all-in-one_1 | what(): option 'libbitcoin-server-ip' cannot be specified more than once peerplays-all-in-one_1 | terminate called after throwing an instance of 'boost::wrapexcept<boost::program_options::multiple_occurrences>' peerplays-all-in-one_1 | what(): option 'libbitcoin-server-ip' cannot be specified more than once peerplays-all-in-one_1 | terminate called after throwing an instance of 'boost::wrapexcept<boost::program_options::multiple_occurrences>' peerplays-all-in-one_1 | what(): option 'libbitcoin-server-ip' cannot be specified more than once peerplays-all-in-one_1 | terminate called after throwing an instance of 'boost::wrapexcept<boost::program_options::multiple_occurrences>' peerplays-all-in-one_1 | what(): option 'libbitcoin-server-ip' cannot be specified more than once peerplays-all-in-one_1 | terminate called after throwing an instance of 'boost::wrapexcept<boost::program_options::multiple_occurrences>' peerplays-all-in-one_1 | what(): option 'libbitcoin-server-ip' cannot be specified more than once peerplays-all-in-one_1 | terminate called after throwing an instance of 'boost::wrapexcept<boost::program_options::multiple_occurrences>' peerplays-all-in-one_1 | what(): option 'libbitcoin-server-ip' cannot be specified more than once peerplays-all-in-one_1 | terminate called after throwing an instance of 'boost::wrapexcept<boost::program_options::multiple_occurrences>' peerplays-all-in-one_1 | what(): option 'libbitcoin-server-ip' cannot be specified more than once peerplays-qa-environment_peerplays-all-in-one_1 exited with code 139 ./bitcoin-cli -rpcuser=1 -rpcwallet="default" -rpcpassword=1 generatetoaddress 1 2MtTPtraZawsvNGc8eCdx98hXbi4gaYy8L6 ```
serkixenos (Migrated from gitlab.com) closed this issue 2022-10-30 04:25:34 +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#449
No description provided.