Implement new RPC client for BITCOIN #403

Closed
opened 2022-07-22 12:00:56 +00:00 by hirunda · 10 comments
hirunda commented 2022-07-22 12:00:56 +00:00 (Migrated from gitlab.com)

Implement new RPC client for BITCOIN based on boost::beast library

Implement new RPC client for BITCOIN based on boost::beast library
hirunda commented 2022-07-22 12:00:56 +00:00 (Migrated from gitlab.com)

assigned to @hirunda

assigned to @hirunda
serkixenos commented 2022-07-26 13:32:05 +00:00 (Migrated from gitlab.com)

mentioned in issue #402

mentioned in issue #402
serkixenos commented 2022-07-26 16:49:24 +00:00 (Migrated from gitlab.com)

mentioned in issue #400

mentioned in issue #400
hirunda commented 2022-07-26 17:49:28 +00:00 (Migrated from gitlab.com)

Please verify withe the newest develop:

  1. Bitcoin transaction (transferring funds from bitcoin to peerplays)
  2. Withdrawal
  3. Voting for list of active sons
Please verify withe the newest develop: 1) Bitcoin transaction (transferring funds from bitcoin to peerplays) 2) Withdrawal 3) Voting for list of active sons
prandnum commented 2022-07-28 04:56:41 +00:00 (Migrated from gitlab.com)

@hirunda @serkixenos

unable to build the peerplays blockchain because of the following error

[ 88%] Built target graphene_market_history
[ 88%] Building CXX object libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/sidechain_net_manager.cpp.o
In file included from /home/peerplays/peerplays-network/src/peerplays/libraries/plugins/peerplays_sidechain/include/graphene/peerplays_sidechain/sidechain_net_handler_bitcoin.hpp:4,
                 from /home/peerplays/peerplays-network/src/peerplays/libraries/plugins/peerplays_sidechain/sidechain_net_manager.cpp:5:
/home/peerplays/peerplays-network/src/peerplays/libraries/plugins/peerplays_sidechain/include/graphene/peerplays_sidechain/common/rpc_client.hpp:40:18: error: 'net' in namespace 'boost::beast' does not name a type
   40 |    boost::beast::net::io_context ioc;
      |                  ^~~
/home/peerplays/peerplays-network/src/peerplays/libraries/plugins/peerplays_sidechain/include/graphene/peerplays_sidechain/common/rpc_client.hpp:41:18: error: 'net' in namespace 'boost::beast' does not name a type
   41 |    boost::beast::net::ip::tcp::resolver resolver;
      |                  ^~~
[ 88%] Building CXX object libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/sidechain_net_handler.cpp.o
make[3]: *** [libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/build.make:89: libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/sidechain_net_manager.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
[ 88%] Building CXX object libraries/plugins/affiliate_stats/CMakeFiles/graphene_affiliate_stats.dir/affiliate_stats_plugin.cpp.o
[ 88%] Linking CXX static library libgraphene_affiliate_stats.a
[ 88%] Built target graphene_affiliate_stats
make[2]: *** [CMakeFiles/Makefile2:2002: libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:2287: programs/cli_wallet/CMakeFiles/cli_wallet.dir/rule] Error 2
make: *** [Makefile:697: cli_wallet] Error 2
ERROR: Service 'peerplays-base' failed to build: The command '/bin/sh -c cd src/peerplays/build &&     make -j4 cli_wallet witness_node' returned a non-zero code: 2

commit pull details

# Clone Peerplays
RUN \
    cd src && \
    git clone https://gitlab.com/PBSA/peerplays.git && \
    cd peerplays && \
    git checkout 005478e3ef103adecfc4a04d440f359433a87afe  && \
    git submodule update --init --recursive && \
    git branch --show-current && \
    git log --oneline -n 5

# Configure Peerplays

@hirunda @serkixenos unable to build the peerplays blockchain because of the following error ``` [ 88%] Built target graphene_market_history [ 88%] Building CXX object libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/sidechain_net_manager.cpp.o In file included from /home/peerplays/peerplays-network/src/peerplays/libraries/plugins/peerplays_sidechain/include/graphene/peerplays_sidechain/sidechain_net_handler_bitcoin.hpp:4, from /home/peerplays/peerplays-network/src/peerplays/libraries/plugins/peerplays_sidechain/sidechain_net_manager.cpp:5: /home/peerplays/peerplays-network/src/peerplays/libraries/plugins/peerplays_sidechain/include/graphene/peerplays_sidechain/common/rpc_client.hpp:40:18: error: 'net' in namespace 'boost::beast' does not name a type 40 | boost::beast::net::io_context ioc; | ^~~ /home/peerplays/peerplays-network/src/peerplays/libraries/plugins/peerplays_sidechain/include/graphene/peerplays_sidechain/common/rpc_client.hpp:41:18: error: 'net' in namespace 'boost::beast' does not name a type 41 | boost::beast::net::ip::tcp::resolver resolver; | ^~~ [ 88%] Building CXX object libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/sidechain_net_handler.cpp.o make[3]: *** [libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/build.make:89: libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/sidechain_net_manager.cpp.o] Error 1 make[3]: *** Waiting for unfinished jobs.... [ 88%] Building CXX object libraries/plugins/affiliate_stats/CMakeFiles/graphene_affiliate_stats.dir/affiliate_stats_plugin.cpp.o [ 88%] Linking CXX static library libgraphene_affiliate_stats.a [ 88%] Built target graphene_affiliate_stats make[2]: *** [CMakeFiles/Makefile2:2002: libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/all] Error 2 make[1]: *** [CMakeFiles/Makefile2:2287: programs/cli_wallet/CMakeFiles/cli_wallet.dir/rule] Error 2 make: *** [Makefile:697: cli_wallet] Error 2 ERROR: Service 'peerplays-base' failed to build: The command '/bin/sh -c cd src/peerplays/build && make -j4 cli_wallet witness_node' returned a non-zero code: 2 ``` commit pull details ``` # Clone Peerplays RUN \ cd src && \ git clone https://gitlab.com/PBSA/peerplays.git && \ cd peerplays && \ git checkout 005478e3ef103adecfc4a04d440f359433a87afe && \ git submodule update --init --recursive && \ git branch --show-current && \ git log --oneline -n 5 # Configure Peerplays ```
hirunda commented 2022-07-28 14:19:05 +00:00 (Migrated from gitlab.com)

Hi @prandnum,

Could you please checkout develop and then checkout particular commit as you did ?
We have bellow commit on which 005478e3ef103adecfc4a04d440f359433a87afe depends.

Hi @prandnum, Could you please checkout develop and then checkout particular commit as you did ? We have bellow commit on which `005478e3ef103adecfc4a04d440f359433a87afe` depends.
hirunda commented 2022-07-28 14:57:30 +00:00 (Migrated from gitlab.com)

Forget what I previously proposed, it doesn't help. It seems that there is a problem in docker build. Let me try to figure out and I will let you know ...

Forget what I previously proposed, it doesn't help. It seems that there is a problem in docker build. Let me try to figure out and I will let you know ...
prandnum commented 2022-08-01 16:30:50 +00:00 (Migrated from gitlab.com)

mentioned in issue #409

mentioned in issue #409
hirunda commented 2022-08-09 10:29:56 +00:00 (Migrated from gitlab.com)

@prandnum could you please continue with testing this ticket ?

@prandnum could you please continue with testing this ticket ?
prandnum commented 2022-08-11 19:25:49 +00:00 (Migrated from gitlab.com)

Tested the following and works fine:

  1. Bitcoin deposit
  2. Bitcoin withdraw
  3. active son voting
Tested the following and works fine: 1. Bitcoin deposit 2. Bitcoin withdraw 3. active son voting
prandnum (Migrated from gitlab.com) closed this issue 2022-08-11 19:25:50 +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#403
No description provided.