Implement sidechain monitoring threads for QA environment #428

Open
opened 2022-09-05 21:33:43 +00:00 by serkixenos · 1 comment
serkixenos commented 2022-09-05 21:33:43 +00:00 (Migrated from gitlab.com)

QA environment should be extended with set of python scripts that will automate testing. This set of scripts should include monitoring mechanism for all sedechains.

These mechanisms should be implemented by calling following commands in the loop:

Bitcoin cli commands to read the status of Bitcoin chain (executed from shell)

./bitcoin-cli -rpcuser=1 -rpcpassword=1 -rpcwallet="default" getblockchaininfo
./bitcoin-cli -rpcuser=1 -rpcpassword=1 -rpcwallet="default" getblockcount
./bitcoin-cli -rpcuser=1 -rpcpassword=1 -rpcwallet="default" getmempoolinfo

./bitcoin-cli -rpcuser=1 -rpcpassword=1 -rpcwallet="default" getmininginfo

./bitcoin-cli -rpcuser=1 -rpcpassword=1 -rpcwallet="default" getnetworkinfo
./bitcoin-cli -rpcuser=1 -rpcpassword=1 -rpcwallet="default" getpeerinfo

./bitcoin-cli -rpcuser=1 -rpcpassword=1 -rpcwallet="default" estimatesmartfee 100

./bitcoin-cli -rpcuser=1 -rpcpassword=1 -rpcwallet="default" getbalance
./bitcoin-cli -rpcuser=1 -rpcpassword=1 -rpcwallet="default" getbalances
./bitcoin-cli -rpcuser=1 -rpcpassword=1 -rpcwallet="default" getunconfirmedbalance

./bitcoin-cli -rpcuser=1 -rpcpassword=1 -rpcwallet="default" listwallets

Ethereum

#TBD

Hive cli commands to read the status of Hive chain (executed from cli wallet)

about
info

Peerplays cli commands to read the status of Peerplays chain (executed from cli wallet)

about
info
get_dynamic_global_properties
get_global_properties

Results should be stored in a data structure similar to this:

bitcoin_status {
    getblockchaininfo: {
        COMMAND_OUTPUT
    },
    getblockcount: {
        COMMAND_OUTPUT
    },
    ...
    listwallets: {
        COMMAND_OUTPUT
    }
}

hive_status {
    about: {
        COMMAND_OUTPUT
    },
    info: {
        COMMAND_OUTPUT
    }
}

etc...

We should have a way to retrieve any of the values from the resulting data structure. Note that results might be json, json array, or simple string,/integer/double values. Examples

get("bitcoin_status.getblockchaininfo.softforks.bip34") 
get("bitcoin_status.getblockchaininfo.blocks") 
QA environment should be extended with set of python scripts that will automate testing. This set of scripts should include monitoring mechanism for all sedechains. These mechanisms should be implemented by calling following commands in the loop: Bitcoin cli commands to read the status of Bitcoin chain (executed from shell) ``` ./bitcoin-cli -rpcuser=1 -rpcpassword=1 -rpcwallet="default" getblockchaininfo ./bitcoin-cli -rpcuser=1 -rpcpassword=1 -rpcwallet="default" getblockcount ./bitcoin-cli -rpcuser=1 -rpcpassword=1 -rpcwallet="default" getmempoolinfo ./bitcoin-cli -rpcuser=1 -rpcpassword=1 -rpcwallet="default" getmininginfo ./bitcoin-cli -rpcuser=1 -rpcpassword=1 -rpcwallet="default" getnetworkinfo ./bitcoin-cli -rpcuser=1 -rpcpassword=1 -rpcwallet="default" getpeerinfo ./bitcoin-cli -rpcuser=1 -rpcpassword=1 -rpcwallet="default" estimatesmartfee 100 ./bitcoin-cli -rpcuser=1 -rpcpassword=1 -rpcwallet="default" getbalance ./bitcoin-cli -rpcuser=1 -rpcpassword=1 -rpcwallet="default" getbalances ./bitcoin-cli -rpcuser=1 -rpcpassword=1 -rpcwallet="default" getunconfirmedbalance ./bitcoin-cli -rpcuser=1 -rpcpassword=1 -rpcwallet="default" listwallets ``` Ethereum ``` #TBD ``` Hive cli commands to read the status of Hive chain (executed from cli wallet) ``` about info ``` Peerplays cli commands to read the status of Peerplays chain (executed from cli wallet) ``` about info get_dynamic_global_properties get_global_properties ``` Results should be stored in a data structure similar to this: ``` bitcoin_status { getblockchaininfo: { COMMAND_OUTPUT }, getblockcount: { COMMAND_OUTPUT }, ... listwallets: { COMMAND_OUTPUT } } hive_status { about: { COMMAND_OUTPUT }, info: { COMMAND_OUTPUT } } etc... ``` We should have a way to retrieve any of the values from the resulting data structure. Note that results might be json, json array, or simple string,/integer/double values. Examples ``` get("bitcoin_status.getblockchaininfo.softforks.bip34") get("bitcoin_status.getblockchaininfo.blocks") ```
milo_peerplays commented 2022-09-06 07:33:56 +00:00 (Migrated from gitlab.com)

assigned to @milo_peerplays

assigned to @milo_peerplays
Sign in to join this conversation.
No milestone
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#428
No description provided.