quantadex / distributed_quanta_bridge

The distributed version of the quanta bridge
1 stars 0 forks source link

Tools for manually process failed transactions #53

Open quocble opened 5 years ago

quocble commented 5 years ago

2 addition commands on node that will exit as soon as it is executed , similar to "encrypt"

Currently some nodes was unable to generate the btc addresses that other nodes generated, while I can

./node sync_addresses btc

(works for BCH, and LTC as well)

This commands will loop through the crosschain addresses table for BTC, and call the GenerateMultisig, which imports the addresses in.

quocble commented 5 years ago

Crosschain Maintenence Tools

Repair addresses

Occassionally when the node crosschain addresses are out of sync with other nodes, the repair address will query from the registration node (node 1) /api/crosschain/coin/history, and create them on the current node.

Must run on non-leader node.

./node -repair

Bounce a TX

If the address is not successful, and we can bounce the coin back to the user.

Must run on node 1.

./node -bounce tx

Retry a TX

Ocassionally, the tx fail due to encode_failure... or some other reasons.

Must run on node 1.

./node -retry tx