Closed dmtrinh closed 2 years ago
Thank you for reporting! I will take a look at this today to try and reproduce.
I took a look at this and it completes almost instantly for me:
root@e73060ab8c3b:/opt/tx-processor# ./build/src/uhs/client/client-cli 2pc-compose.cfg mempool0.dat wallet0.dat mint 1000 2000
[2022-02-04 20:27:17.526] [WARN ] Existing wallet file not found
[2022-02-04 20:27:17.526] [WARN ] Existing client file not found
87ffd732bdb353385468fe9ae1c19c878a02300567c1201a5e7ac7cb76484d6f
root@e73060ab8c3b:/opt/tx-processor# ./build/src/uhs/client/client-cli 2pc-compose.cfg mempool0.dat wallet0.dat info
Balance: $20000.00, UTXOs: 1000, pending TXs: 0
root@e73060ab8c3b:/opt/tx-processor#
It seems possible to me this is a performance-related issue. Can you give me some more information about the hardware you're running on?
Sam,
Here's what I have:
I cleared everything and tried again. This time the initial minting of 1000 UTXOs completed successfully. I followed up with minting of 10000 UTXOs to the same wallet and it didn't complete. I waited for over 10mins (20:53 -> 21:05), and tried checking the wallet again and it shows the second transaction is still pending.
Below are my logs:
(base) ---------- 14:53:27 (duc@DucMacBook) :~/Dev/opencbdc-tx/build ----------
==> docker run --network 2pc-network -ti opencbdc-tx /bin/bash
root@cc18b32df450:/opt/tx-processor# ./build/src/uhs/client/client-cli 2pc-compose.cfg mempool0.dat wallet0.dat mint 1000 2000
[2022-02-04 20:53:53.562] [WARN ] Existing wallet file not found
[2022-02-04 20:53:53.563] [WARN ] Existing client file not found
1b3ec750b6f10eb391c6df3cb0a7ac03186c6b17b43c70ba8401120cb6106e17
root@cc18b32df450:/opt/tx-processor# ./build/src/uhs/client/client-cli 2pc-compose.cfg mempool0.dat wallet0.dat info
Balance: $20000.00, UTXOs: 1000, pending TXs: 0
root@cc18b32df450:/opt/tx-processor# ./build/src/uhs/client/client-cli 2pc-compose.cfg mempool0.dat wallet0.dat mint 10000 5000
9d83b1ddb17e39a689b79df21c25759e8e35b564af8a93d380213bf96ce31e2d
root@cc18b32df450:/opt/tx-processor# ./build/src/uhs/client/client-cli 2pc-compose.cfg mempool0.dat wallet0.dat info
Balance: $20000.00, UTXOs: 1000, pending TXs: 1
root@cc18b32df450:/opt/tx-processor# date
Fri Feb 4 21:05:20 UTC 2022
root@cc18b32df450:/opt/tx-processor# ./build/src/uhs/client/client-cli 2pc-compose.cfg mempool0.dat wallet0.dat info
Balance: $20000.00, UTXOs: 1000, pending TXs: 1
root@cc18b32df450:/opt/tx-processor#
(base) ---------- 14:52:39 (duc@DucMacBook) :~/Dev/opencbdc-tx ----------
==> docker-compose --file docker-compose-2pc.yml up
Creating network "2pc-network" with the default driver
Creating opencbdc-tx_shard0_1 ... done
Creating opencbdc-tx_coordinator0_1 ... done
Creating opencbdc-tx_sentinel0_1 ... done
Attaching to opencbdc-tx_shard0_1, opencbdc-tx_coordinator0_1, opencbdc-tx_sentinel0_1
coordinator0_1 | [2022-02-04 20:53:09.806] [INFO ] using sha2: sse4(1way),sse41(4way),avx2(8way)
coordinator0_1 | [2022-02-04 20:53:09.808] [INFO ] /NuRaft-1.2.0/src/asio_service.cxx : 705 asio_rpc_listener Raft ASIO listener initiated, UNSECURED
coordinator0_1 | [2022-02-04 20:53:09.820] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 340 apply_and_log_current_params parameters: timeout 2000 - 4000, heartbeat 1000, leadership expiry 20000, max batch 100000, backoff 50, snapshot distance 0, log sync stop gap 99999, reserved logs 100000, client timeout 3000, auto forwarding OFF, API call type BLOCKING, custom commit quorum size 0, custom election quorum size 0, snapshot receiver INCLUDED, leadership transfer wait time 0
coordinator0_1 | [2022-02-04 20:53:09.820] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 315 update_rand_timeout new timeout range: 2000 -- 4000
coordinator0_1 | [2022-02-04 20:53:09.820] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 149 raft_server === INIT RAFT SERVER ===
coordinator0_1 | commit index 0
coordinator0_1 | term 0
coordinator0_1 | election timer allowed
coordinator0_1 | log store start 1, end 0
coordinator0_1 | config log idx 0, prev log idx 0
coordinator0_1 | [2022-02-04 20:53:09.820] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 242 raft_server peer 1: DC ID 0, coordinator0:7778, voting member, 1
coordinator0_1 | my id: 1, voting_member
coordinator0_1 | num peers: 0
coordinator0_1 | [2022-02-04 20:53:09.821] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 252 raft_server global manager does not exist. will use local thread for commit and append
coordinator0_1 | [2022-02-04 20:53:09.821] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 277 raft_server wait for HB, for 50 + [2000, 4000] ms
coordinator0_1 | [2022-02-04 20:53:09.821] [INFO ] /NuRaft-1.2.0/src/handle_append_entries.cxx : 47 append_entries_in_bg bg append_entries thread initiated
shard0_1 | [2022-02-04 20:53:09.313] [INFO ] using sha2: sse4(1way),sse41(4way),avx2(8way)
shard0_1 | [2022-02-04 20:53:09.419] [INFO ] /NuRaft-1.2.0/src/asio_service.cxx : 705 asio_rpc_listener Raft ASIO listener initiated, UNSECURED
shard0_1 | [2022-02-04 20:53:09.427] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 340 apply_and_log_current_params parameters: timeout 2000 - 4000, heartbeat 1000, leadership expiry 20000, max batch 100000, backoff 50, snapshot distance 0, log sync stop gap 99999, reserved logs 100000, client timeout 3000, auto forwarding OFF, API call type ASYNC, custom commit quorum size 0, custom election quorum size 0, snapshot receiver INCLUDED, leadership transfer wait time 0
shard0_1 | [2022-02-04 20:53:09.427] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 315 update_rand_timeout new timeout range: 2000 -- 4000
shard0_1 | [2022-02-04 20:53:09.427] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 149 raft_server === INIT RAFT SERVER ===
shard0_1 | commit index 0
shard0_1 | term 0
shard0_1 | election timer allowed
shard0_1 | log store start 1, end 0
shard0_1 | config log idx 0, prev log idx 0
shard0_1 | [2022-02-04 20:53:09.428] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 242 raft_server peer 1: DC ID 0, shard0:6667, voting member, 1
shard0_1 | my id: 1, voting_member
shard0_1 | num peers: 0
shard0_1 | [2022-02-04 20:53:09.428] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 252 raft_server global manager does not exist. will use local thread for commit and append
shard0_1 | [2022-02-04 20:53:09.428] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 277 raft_server wait for HB, for 50 + [2000, 4000] ms
shard0_1 | [2022-02-04 20:53:09.428] [INFO ] /NuRaft-1.2.0/src/handle_append_entries.cxx : 47 append_entries_in_bg bg append_entries thread initiated
shard0_1 | Waiting for raft initialization....................[2022-02-04 20:53:11.478] [WARN ] /NuRaft-1.2.0/src/handle_timeout.cxx : 256 handle_election_timeout Election timeout, initiate leader election
shard0_1 | [2022-02-04 20:53:11.478] [INFO ] /NuRaft-1.2.0/src/handle_priority.cxx : 211 decay_target_priority [PRIORITY] decay, target 1 -> 1, mine 1
shard0_1 | [2022-02-04 20:53:11.478] [INFO ] /NuRaft-1.2.0/src/handle_timeout.cxx : 269 handle_election_timeout [ELECTION TIMEOUT] current role: follower, log last term 0, state term 0, target p 1, my p 1, hb dead, pre-vote NOT done
shard0_1 | [2022-02-04 20:53:11.479] [INFO ] /NuRaft-1.2.0/src/handle_vote.cxx : 195 request_vote [VOTE INIT] my id 1, my role candidate, term 1, log idx 0, log term 0, priority (target 1 / mine 1)
shard0_1 | [2022-02-04 20:53:11.479] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 906 become_leader number of pending commit elements: 0
shard0_1 | [2022-02-04 20:53:11.479] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 919 become_leader state machine commit index 0, precommit index 0, last log index 0
shard0_1 | [2022-02-04 20:53:11.479] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 964 become_leader [BECOME LEADER] appended new config at 1
shard0_1 | [2022-02-04 20:53:11.481] [WARN ] Became leader, starting listener
shard0_1 | [2022-02-04 20:53:11.483] [INFO ] /NuRaft-1.2.0/src/handle_commit.cxx : 346 commit_conf config at index 1 is committed, prev config log idx 0
shard0_1 | [2022-02-04 20:53:11.483] [INFO ] /NuRaft-1.2.0/src/handle_commit.cxx : 527 reconfigure new config log idx 1, prev log idx 0, cur config log idx 0, prev log idx 0
shard0_1 | [2022-02-04 20:53:11.483] [INFO ] /NuRaft-1.2.0/src/handle_commit.cxx : 737 reconfigure new configuration: log idx 1, prev log idx 0
shard0_1 | peer 1, DC ID 0, shard0:6667, voting member, 1
shard0_1 | my id: 1, leader: 1, term: 1
shard0_1 |
shard0_1 | [2022-02-04 20:53:11.485] [INFO ] Shard running...
coordinator0_1 | Waiting for raft initialization...........................[2022-02-04 20:53:12.580] [WARN ] /NuRaft-1.2.0/src/handle_timeout.cxx : 256 handle_election_timeout Election timeout, initiate leader election
coordinator0_1 | [2022-02-04 20:53:12.580] [INFO ] /NuRaft-1.2.0/src/handle_priority.cxx : 211 decay_target_priority [PRIORITY] decay, target 1 -> 1, mine 1
coordinator0_1 | [2022-02-04 20:53:12.580] [INFO ] /NuRaft-1.2.0/src/handle_timeout.cxx : 269 handle_election_timeout [ELECTION TIMEOUT] current role: follower, log last term 0, state term 0, target p 1, my p 1, hb dead, pre-vote NOT done
coordinator0_1 | [2022-02-04 20:53:12.582] [INFO ] /NuRaft-1.2.0/src/handle_vote.cxx : 195 request_vote [VOTE INIT] my id 1, my role candidate, term 1, log idx 0, log term 0, priority (target 1 / mine 1)
coordinator0_1 | [2022-02-04 20:53:12.582] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 906 become_leader number of pending commit elements: 0
coordinator0_1 | [2022-02-04 20:53:12.583] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 919 become_leader state machine commit index 0, precommit index 0, last log index 0
coordinator0_1 | [2022-02-04 20:53:12.583] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 964 become_leader [BECOME LEADER] appended new config at 1
coordinator0_1 | [2022-02-04 20:53:12.585] [WARN ] Became leader, starting coordinator
coordinator0_1 | [2022-02-04 20:53:12.586] [WARN ] Done with become leader handler
coordinator0_1 | [2022-02-04 20:53:12.586] [WARN ] Stopping coordinator before start
coordinator0_1 | [2022-02-04 20:53:12.586] [INFO ] /NuRaft-1.2.0/src/handle_commit.cxx : 346 commit_conf config at index 1 is committed, prev config log idx 0
coordinator0_1 | [2022-02-04 20:53:12.586] [WARN ] Starting coordinator
coordinator0_1 | [2022-02-04 20:53:12.586] [WARN ] Resetting sentinel network handler
coordinator0_1 | [2022-02-04 20:53:12.586] [WARN ] Connecting to shards
coordinator0_1 | [2022-02-04 20:53:12.586] [WARN ] Connecting to shard cluster 0
coordinator0_1 | [2022-02-04 20:53:12.586] [INFO ] /NuRaft-1.2.0/src/handle_commit.cxx : 527 reconfigure new config log idx 1, prev log idx 0, cur config log idx 0, prev log idx 0
coordinator0_1 | [2022-02-04 20:53:12.586] [INFO ] /NuRaft-1.2.0/src/handle_commit.cxx : 737 reconfigure new configuration: log idx 1, prev log idx 0
coordinator0_1 | peer 1, DC ID 0, coordinator0:7778, voting member, 1
coordinator0_1 | my id: 1, leader: 1, term: 1
coordinator0_1 |
coordinator0_1 | [2022-02-04 20:53:12.587] [INFO ] Coordinator running...
coordinator0_1 | [2022-02-04 20:53:12.589] [WARN ] Became leader, recovering dtxs
coordinator0_1 | [2022-02-04 20:53:12.589] [INFO ] Waiting for get SM command response
coordinator0_1 | [2022-02-04 20:53:12.589] [INFO ] Started recovery process
coordinator0_1 | [2022-02-04 20:53:12.589] [INFO ] Recovery complete
coordinator0_1 | [2022-02-04 20:53:12.590] [WARN ] Started coordinator
coordinator0_1 | [2022-02-04 20:53:53.608] [INFO ] dtxn start: b6c061be05752b38a5d7b1f177fee26c9b25fbf180b704ab876fc37d30a3ffbc size: 1
coordinator0_1 | [2022-02-04 20:53:53.608] [INFO ] Preparing b6c061be05752b38a5d7b1f177fee26c9b25fbf180b704ab876fc37d30a3ffbc
shard0_1 | [2022-02-04 20:53:53.610] [INFO ] Processing lock b6c061be05752b38a5d7b1f177fee26c9b25fbf180b704ab876fc37d30a3ffbc with 1 txs
shard0_1 | [2022-02-04 20:53:53.611] [INFO ] Done lock b6c061be05752b38a5d7b1f177fee26c9b25fbf180b704ab876fc37d30a3ffbc
coordinator0_1 | [2022-02-04 20:53:53.611] [INFO ] Prepared b6c061be05752b38a5d7b1f177fee26c9b25fbf180b704ab876fc37d30a3ffbc
coordinator0_1 | [2022-02-04 20:53:53.611] [INFO ] Committing b6c061be05752b38a5d7b1f177fee26c9b25fbf180b704ab876fc37d30a3ffbc
shard0_1 | [2022-02-04 20:53:53.612] [INFO ] Processing apply b6c061be05752b38a5d7b1f177fee26c9b25fbf180b704ab876fc37d30a3ffbc
shard0_1 | [2022-02-04 20:53:53.626] [INFO ] Done apply b6c061be05752b38a5d7b1f177fee26c9b25fbf180b704ab876fc37d30a3ffbc
coordinator0_1 | [2022-02-04 20:53:53.627] [INFO ] Committed b6c061be05752b38a5d7b1f177fee26c9b25fbf180b704ab876fc37d30a3ffbc
coordinator0_1 | [2022-02-04 20:53:53.627] [INFO ] Discarding b6c061be05752b38a5d7b1f177fee26c9b25fbf180b704ab876fc37d30a3ffbc
shard0_1 | [2022-02-04 20:53:53.629] [INFO ] Processing discard b6c061be05752b38a5d7b1f177fee26c9b25fbf180b704ab876fc37d30a3ffbc
shard0_1 | [2022-02-04 20:53:53.629] [INFO ] Done discard b6c061be05752b38a5d7b1f177fee26c9b25fbf180b704ab876fc37d30a3ffbc
coordinator0_1 | [2022-02-04 20:53:53.630] [INFO ] Discarded b6c061be05752b38a5d7b1f177fee26c9b25fbf180b704ab876fc37d30a3ffbc
coordinator0_1 | [2022-02-04 20:53:53.630] [INFO ] dtxn done: b6c061be05752b38a5d7b1f177fee26c9b25fbf180b704ab876fc37d30a3ffbc t: 22093900 size: 1
coordinator0_1 | [2022-02-04 20:54:41.544] [INFO ] dtxn start: fc11f89873ef34d1687b5bafcbae53b31671c6edd304259fa405aa10607df91e size: 1
coordinator0_1 | [2022-02-04 20:54:41.545] [INFO ] Preparing fc11f89873ef34d1687b5bafcbae53b31671c6edd304259fa405aa10607df91e
shard0_1 | [2022-02-04 20:54:41.551] [INFO ] Processing lock fc11f89873ef34d1687b5bafcbae53b31671c6edd304259fa405aa10607df91e with 1 txs
shard0_1 | [2022-02-04 20:54:41.551] [INFO ] Done lock fc11f89873ef34d1687b5bafcbae53b31671c6edd304259fa405aa10607df91e
coordinator0_1 | [2022-02-04 20:54:41.552] [INFO ] Prepared fc11f89873ef34d1687b5bafcbae53b31671c6edd304259fa405aa10607df91e
coordinator0_1 | [2022-02-04 20:54:41.552] [INFO ] Committing fc11f89873ef34d1687b5bafcbae53b31671c6edd304259fa405aa10607df91e
shard0_1 | [2022-02-04 20:54:41.596] [INFO ] Processing apply fc11f89873ef34d1687b5bafcbae53b31671c6edd304259fa405aa10607df91e
shard0_1 | [2022-02-04 20:54:42.606] [INFO ] Done apply fc11f89873ef34d1687b5bafcbae53b31671c6edd304259fa405aa10607df91e
coordinator0_1 | [2022-02-04 20:54:42.648] [INFO ] Committed fc11f89873ef34d1687b5bafcbae53b31671c6edd304259fa405aa10607df91e
coordinator0_1 | [2022-02-04 20:54:42.648] [INFO ] Discarding fc11f89873ef34d1687b5bafcbae53b31671c6edd304259fa405aa10607df91e
shard0_1 | [2022-02-04 20:54:42.650] [INFO ] Processing discard fc11f89873ef34d1687b5bafcbae53b31671c6edd304259fa405aa10607df91e
shard0_1 | [2022-02-04 20:54:42.650] [INFO ] Done discard fc11f89873ef34d1687b5bafcbae53b31671c6edd304259fa405aa10607df91e
coordinator0_1 | [2022-02-04 20:54:42.651] [INFO ] Discarded fc11f89873ef34d1687b5bafcbae53b31671c6edd304259fa405aa10607df91e
coordinator0_1 | [2022-02-04 20:54:42.651] [INFO ] dtxn done: fc11f89873ef34d1687b5bafcbae53b31671c6edd304259fa405aa10607df91e t: 1106060400 size: 1
Out of interest, can you try manually running sync
; e.g.:
root@e73060ab8c3b:/opt/tx-processor# ./build/src/uhs/client/client-cli 2pc-compose.cfg mempool0.dat wallet0.dat sync
I can confirm @metalicjames fix solves this issue. Below are the logs:
(base) ---------- 12:31:29 (duc@DucMacBook) :~/Dev2 ----------
==> git clone --branch mint_timeout --recurse-submodules https://github.com/metalicjames/opencbdc-tx-1
Cloning into 'opencbdc-tx-1'...
remote: Enumerating objects: 696, done.
remote: Counting objects: 100% (696/696), done.
remote: Compressing objects: 100% (402/402), done.
remote: Total 696 (delta 366), reused 606 (delta 276), pack-reused 0
Receiving objects: 100% (696/696), 410.48 KiB | 3.91 MiB/s, done.
Resolving deltas: 100% (366/366), done.
Submodule 'secp256k1' (https://github.com/bitcoin-core/secp256k1.git) registered for path '3rdparty/secp256k1'
Cloning into '/Users/duc/Dev2/opencbdc-tx-1/3rdparty/secp256k1'...
remote: Enumerating objects: 7498, done.
remote: Counting objects: 100% (281/281), done.
remote: Compressing objects: 100% (131/131), done.
remote: Total 7498 (delta 183), reused 227 (delta 150), pack-reused 7217
Receiving objects: 100% (7498/7498), 8.77 MiB | 13.13 MiB/s, done.
Resolving deltas: 100% (5243/5243), done.
Submodule path '3rdparty/secp256k1': checked out 'ac05f61fcf639a15b5101131561620303e4bd808'
(base) ---------- 12:31:46 (duc@DucMacBook) :~/Dev2 ----------
==> cd opencbdc-tx-1
(base) ---------- 12:33:24 (duc@DucMacBook) :~/Dev2/opencbdc-tx-1 ----------
==> docker build . -t opencbdc-tx
[+] Building 344.6s (13/13) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.55kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 81B 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:20.04 0.9s
=> [1/8] FROM docker.io/library/ubuntu:20.04@sha256:669e010b58baf5beb2836b253c1fd5768333f0d1dbcb834f7c07a4dc93f474be 0.0s
=> [internal] load build context 0.3s
=> => transferring context: 12.37MB 0.3s
=> CACHED [2/8] RUN apt update && apt install -y build-essential wget cmake libgtest-dev libgmock-dev net-tools git 0.0s
=> CACHED [3/8] RUN wget https://github.com/google/leveldb/archive/1.22.tar.gz && tar xzvf 1.22.tar.gz && rm -f 1.22.tar.gz && cd leveldb-1.22 && cmake -DCMAKE_BUILD_T 0.0s
=> CACHED [4/8] RUN wget https://github.com/eBay/NuRaft/archive/v1.2.0.tar.gz && tar xzvf v1.2.0.tar.gz && rm v1.2.0.tar.gz && cd "NuRaft-1.2.0" && ./prepare.sh && 0.0s
=> CACHED [5/8] WORKDIR /opt/tx-processor 0.0s
=> [6/8] COPY . . 0.1s
=> [7/8] RUN git submodule init && git submodule update 0.3s
=> [8/8] RUN mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make 341.7s
=> exporting to image 1.2s
=> => exporting layers 1.2s
=> => writing image sha256:6dc245ecb29d2371c73f1066bfd99d1e1d8086fc2b49d17f985013953f2d5e2b 0.0s
=> => naming to docker.io/library/opencbdc-tx 0.0s
Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
(base) ---------- 12:39:42 (duc@DucMacBook) :~/Dev2/opencbdc-tx-1 ----------
==> docker-compose --file docker-compose-2pc.yml up
[+] Running 4/4
⠿ Network 2pc-network Created 0.0s
⠿ Container opencbdc-tx-1-shard0-1 Created 0.1s
⠿ Container opencbdc-tx-1-coordinator0-1 Created 0.1s
⠿ Container opencbdc-tx-1-sentinel0-1 Created 0.1s
Attaching to opencbdc-tx-1-coordinator0-1, opencbdc-tx-1-sentinel0-1, opencbdc-tx-1-shard0-1
opencbdc-tx-1-shard0-1 | [2022-02-05 18:41:28.370] [INFO ] using sha2: sse4(1way),sse41(4way),avx2(8way)
opencbdc-tx-1-shard0-1 | [2022-02-05 18:41:28.463] [INFO ] /NuRaft-1.2.0/src/asio_service.cxx : 705 asio_rpc_listener Raft ASIO listener initiated, UNSECURED
opencbdc-tx-1-shard0-1 | [2022-02-05 18:41:28.469] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 340 apply_and_log_current_params parameters: timeout 2000 - 4000, heartbeat 1000, leadership expiry 20000, max batch 100000, backoff 50, snapshot distance 0, log sync stop gap 99999, reserved logs 100000, client timeout 3000, auto forwarding OFF, API call type ASYNC, custom commit quorum size 0, custom election quorum size 0, snapshot receiver INCLUDED, leadership transfer wait time 0
opencbdc-tx-1-shard0-1 | [2022-02-05 18:41:28.469] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 315 update_rand_timeout new timeout range: 2000 -- 4000
opencbdc-tx-1-shard0-1 | [2022-02-05 18:41:28.469] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 149 raft_server === INIT RAFT SERVER ===
opencbdc-tx-1-shard0-1 | commit index 0
opencbdc-tx-1-shard0-1 | term 0
opencbdc-tx-1-shard0-1 | election timer allowed
opencbdc-tx-1-shard0-1 | log store start 1, end 0
opencbdc-tx-1-shard0-1 | config log idx 0, prev log idx 0
opencbdc-tx-1-shard0-1 | [2022-02-05 18:41:28.469] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 242 raft_server peer 1: DC ID 0, shard0:6667, voting member, 1
opencbdc-tx-1-shard0-1 | my id: 1, voting_member
opencbdc-tx-1-shard0-1 | num peers: 0
opencbdc-tx-1-shard0-1 | [2022-02-05 18:41:28.469] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 252 raft_server global manager does not exist. will use local thread for commit and append
opencbdc-tx-1-shard0-1 | [2022-02-05 18:41:28.469] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 277 raft_server wait for HB, for 50 + [2000, 4000] ms
opencbdc-tx-1-shard0-1 | [2022-02-05 18:41:28.469] [INFO ] /NuRaft-1.2.0/src/handle_append_entries.cxx : 47 append_entries_in_bg bg append_entries thread initiated
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:29.277] [INFO ] using sha2: sse4(1way),sse41(4way),avx2(8way)
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:29.278] [INFO ] /NuRaft-1.2.0/src/asio_service.cxx : 705 asio_rpc_listener Raft ASIO listener initiated, UNSECURED
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:29.291] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 340 apply_and_log_current_params parameters: timeout 2000 - 4000, heartbeat 1000, leadership expiry 20000, max batch 100000, backoff 50, snapshot distance 0, log sync stop gap 99999, reserved logs 100000, client timeout 3000, auto forwarding OFF, API call type BLOCKING, custom commit quorum size 0, custom election quorum size 0, snapshot receiver INCLUDED, leadership transfer wait time 0
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:29.291] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 315 update_rand_timeout new timeout range: 2000 -- 4000
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:29.291] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 149 raft_server === INIT RAFT SERVER ===
opencbdc-tx-1-coordinator0-1 | commit index 0
opencbdc-tx-1-coordinator0-1 | term 0
opencbdc-tx-1-coordinator0-1 | election timer allowed
opencbdc-tx-1-coordinator0-1 | log store start 1, end 0
opencbdc-tx-1-coordinator0-1 | config log idx 0, prev log idx 0
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:29.292] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 242 raft_server peer 1: DC ID 0, coordinator0:7778, voting member, 1
opencbdc-tx-1-coordinator0-1 | my id: 1, voting_member
opencbdc-tx-1-coordinator0-1 | num peers: 0
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:29.292] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 252 raft_server global manager does not exist. will use local thread for commit and append
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:29.292] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 277 raft_server wait for HB, for 50 + [2000, 4000] ms
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:29.293] [INFO ] /NuRaft-1.2.0/src/handle_append_entries.cxx : 47 append_entries_in_bg bg append_entries thread initiated
opencbdc-tx-1-shard0-1 | Waiting for raft initialization......................[2022-02-05 18:41:30.715] [WARN ] /NuRaft-1.2.0/src/handle_timeout.cxx : 256 handle_election_timeout Election timeout, initiate leader election
opencbdc-tx-1-shard0-1 | [2022-02-05 18:41:30.715] [INFO ] /NuRaft-1.2.0/src/handle_priority.cxx : 211 decay_target_priority [PRIORITY] decay, target 1 -> 1, mine 1
opencbdc-tx-1-shard0-1 | [2022-02-05 18:41:30.716] [INFO ] /NuRaft-1.2.0/src/handle_timeout.cxx : 269 handle_election_timeout [ELECTION TIMEOUT] current role: follower, log last term 0, state term 0, target p 1, my p 1, hb dead, pre-vote NOT done
opencbdc-tx-1-shard0-1 | [2022-02-05 18:41:30.716] [INFO ] /NuRaft-1.2.0/src/handle_vote.cxx : 195 request_vote [VOTE INIT] my id 1, my role candidate, term 1, log idx 0, log term 0, priority (target 1 / mine 1)
opencbdc-tx-1-shard0-1 | [2022-02-05 18:41:30.716] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 906 become_leader number of pending commit elements: 0
opencbdc-tx-1-shard0-1 | [2022-02-05 18:41:30.716] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 919 become_leader state machine commit index 0, precommit index 0, last log index 0
opencbdc-tx-1-shard0-1 | [2022-02-05 18:41:30.716] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 964 become_leader [BECOME LEADER] appended new config at 1
opencbdc-tx-1-shard0-1 | [2022-02-05 18:41:30.720] [WARN ] Became leader, starting listener
opencbdc-tx-1-shard0-1 | [2022-02-05 18:41:30.722] [INFO ] /NuRaft-1.2.0/src/handle_commit.cxx : 346 commit_conf config at index 1 is committed, prev config log idx 0
opencbdc-tx-1-shard0-1 | [2022-02-05 18:41:30.722] [INFO ] /NuRaft-1.2.0/src/handle_commit.cxx : 527 reconfigure new config log idx 1, prev log idx 0, cur config log idx 0, prev log idx 0
opencbdc-tx-1-shard0-1 | [2022-02-05 18:41:30.722] [INFO ] /NuRaft-1.2.0/src/handle_commit.cxx : 737 reconfigure new configuration: log idx 1, prev log idx 0
opencbdc-tx-1-shard0-1 | peer 1, DC ID 0, shard0:6667, voting member, 1
opencbdc-tx-1-shard0-1 | my id: 1, leader: 1, term: 1
opencbdc-tx-1-shard0-1 |
opencbdc-tx-1-shard0-1 | [2022-02-05 18:41:30.741] [INFO ] Shard running...
opencbdc-tx-1-coordinator0-1 | Waiting for raft initialization.....................[2022-02-05 18:41:31.364] [WARN ] /NuRaft-1.2.0/src/handle_timeout.cxx : 256 handle_election_timeout Election timeout, initiate leader election
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:31.364] [INFO ] /NuRaft-1.2.0/src/handle_priority.cxx : 211 decay_target_priority [PRIORITY] decay, target 1 -> 1, mine 1
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:31.364] [INFO ] /NuRaft-1.2.0/src/handle_timeout.cxx : 269 handle_election_timeout [ELECTION TIMEOUT] current role: follower, log last term 0, state term 0, target p 1, my p 1, hb dead, pre-vote NOT done
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:31.366] [INFO ] /NuRaft-1.2.0/src/handle_vote.cxx : 195 request_vote [VOTE INIT] my id 1, my role candidate, term 1, log idx 0, log term 0, priority (target 1 / mine 1)
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:31.366] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 906 become_leader number of pending commit elements: 0
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:31.366] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 919 become_leader state machine commit index 0, precommit index 0, last log index 0
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:31.366] [INFO ] /NuRaft-1.2.0/src/raft_server.cxx : 964 become_leader [BECOME LEADER] appended new config at 1
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:31.369] [WARN ] Became leader, starting coordinator
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:31.369] [WARN ] Done with become leader handler
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:31.369] [WARN ] Stopping coordinator before start
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:31.369] [WARN ] Starting coordinator
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:31.369] [INFO ] /NuRaft-1.2.0/src/handle_commit.cxx : 346 commit_conf config at index 1 is committed, prev config log idx 0
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:31.369] [WARN ] Resetting sentinel network handler
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:31.369] [WARN ] Connecting to shards
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:31.369] [WARN ] Connecting to shard cluster 0
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:31.369] [INFO ] /NuRaft-1.2.0/src/handle_commit.cxx : 527 reconfigure new config log idx 1, prev log idx 0, cur config log idx 0, prev log idx 0
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:31.369] [INFO ] /NuRaft-1.2.0/src/handle_commit.cxx : 737 reconfigure new configuration: log idx 1, prev log idx 0
opencbdc-tx-1-coordinator0-1 | peer 1, DC ID 0, coordinator0:7778, voting member, 1
opencbdc-tx-1-coordinator0-1 | my id: 1, leader: 1, term: 1
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:31.371] [WARN ] Became leader, recovering dtxs
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:31.371] [INFO ] Waiting for get SM command response
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:31.372] [INFO ] Started recovery process
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:31.372] [INFO ] Recovery complete
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:31.373] [WARN ] Started coordinator
opencbdc-tx-1-coordinator0-1 |
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:41:31.465] [INFO ] Coordinator running...
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:42:36.155] [INFO ] dtxn start: 7cfb22453063c77b9a2aaa66091b2444c00693d4855664537a98951a476ed3da size: 1
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:42:36.155] [INFO ] Preparing 7cfb22453063c77b9a2aaa66091b2444c00693d4855664537a98951a476ed3da
opencbdc-tx-1-shard0-1 | [2022-02-05 18:42:36.157] [INFO ] Processing lock 7cfb22453063c77b9a2aaa66091b2444c00693d4855664537a98951a476ed3da with 1 txs
opencbdc-tx-1-shard0-1 | [2022-02-05 18:42:36.157] [INFO ] Done lock 7cfb22453063c77b9a2aaa66091b2444c00693d4855664537a98951a476ed3da
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:42:36.158] [INFO ] Prepared 7cfb22453063c77b9a2aaa66091b2444c00693d4855664537a98951a476ed3da
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:42:36.158] [INFO ] Committing 7cfb22453063c77b9a2aaa66091b2444c00693d4855664537a98951a476ed3da
opencbdc-tx-1-shard0-1 | [2022-02-05 18:42:36.159] [INFO ] Processing apply 7cfb22453063c77b9a2aaa66091b2444c00693d4855664537a98951a476ed3da
opencbdc-tx-1-shard0-1 | [2022-02-05 18:42:36.169] [INFO ] Done apply 7cfb22453063c77b9a2aaa66091b2444c00693d4855664537a98951a476ed3da
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:42:36.170] [INFO ] Committed 7cfb22453063c77b9a2aaa66091b2444c00693d4855664537a98951a476ed3da
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:42:36.170] [INFO ] Discarding 7cfb22453063c77b9a2aaa66091b2444c00693d4855664537a98951a476ed3da
opencbdc-tx-1-shard0-1 | [2022-02-05 18:42:36.171] [INFO ] Processing discard 7cfb22453063c77b9a2aaa66091b2444c00693d4855664537a98951a476ed3da
opencbdc-tx-1-shard0-1 | [2022-02-05 18:42:36.171] [INFO ] Done discard 7cfb22453063c77b9a2aaa66091b2444c00693d4855664537a98951a476ed3da
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:42:36.172] [INFO ] Discarded 7cfb22453063c77b9a2aaa66091b2444c00693d4855664537a98951a476ed3da
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:42:36.172] [INFO ] dtxn done: 7cfb22453063c77b9a2aaa66091b2444c00693d4855664537a98951a476ed3da t: 16443200 size: 1
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:43:13.026] [INFO ] dtxn start: c166282c599638628812fe15074c05271547955e9822d2f58541c1881ee21eaf size: 1
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:43:13.026] [INFO ] Preparing c166282c599638628812fe15074c05271547955e9822d2f58541c1881ee21eaf
opencbdc-tx-1-shard0-1 | [2022-02-05 18:43:13.032] [INFO ] Processing lock c166282c599638628812fe15074c05271547955e9822d2f58541c1881ee21eaf with 1 txs
opencbdc-tx-1-shard0-1 | [2022-02-05 18:43:13.033] [INFO ] Done lock c166282c599638628812fe15074c05271547955e9822d2f58541c1881ee21eaf
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:43:13.034] [INFO ] Prepared c166282c599638628812fe15074c05271547955e9822d2f58541c1881ee21eaf
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:43:13.034] [INFO ] Committing c166282c599638628812fe15074c05271547955e9822d2f58541c1881ee21eaf
opencbdc-tx-1-shard0-1 | [2022-02-05 18:43:13.080] [INFO ] Processing apply c166282c599638628812fe15074c05271547955e9822d2f58541c1881ee21eaf
opencbdc-tx-1-shard0-1 | [2022-02-05 18:43:14.048] [INFO ] Done apply c166282c599638628812fe15074c05271547955e9822d2f58541c1881ee21eaf
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:43:14.090] [INFO ] Committed c166282c599638628812fe15074c05271547955e9822d2f58541c1881ee21eaf
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:43:14.090] [INFO ] Discarding c166282c599638628812fe15074c05271547955e9822d2f58541c1881ee21eaf
opencbdc-tx-1-shard0-1 | [2022-02-05 18:43:14.092] [INFO ] Processing discard c166282c599638628812fe15074c05271547955e9822d2f58541c1881ee21eaf
opencbdc-tx-1-shard0-1 | [2022-02-05 18:43:14.092] [INFO ] Done discard c166282c599638628812fe15074c05271547955e9822d2f58541c1881ee21eaf
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:43:14.093] [INFO ] Discarded c166282c599638628812fe15074c05271547955e9822d2f58541c1881ee21eaf
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:43:14.094] [INFO ] dtxn done: c166282c599638628812fe15074c05271547955e9822d2f58541c1881ee21eaf t: 1067606100 size: 1
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:44:30.990] [INFO ] dtxn start: b4f83f7117c2fe7af81fba6f0b750a30c02110d6bec0d109ce85aac1d483cfbf size: 1
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:44:30.991] [INFO ] Preparing b4f83f7117c2fe7af81fba6f0b750a30c02110d6bec0d109ce85aac1d483cfbf
opencbdc-tx-1-shard0-1 | [2022-02-05 18:44:30.994] [INFO ] Processing lock b4f83f7117c2fe7af81fba6f0b750a30c02110d6bec0d109ce85aac1d483cfbf with 1 txs
opencbdc-tx-1-shard0-1 | [2022-02-05 18:44:32.090] [INFO ] Done lock b4f83f7117c2fe7af81fba6f0b750a30c02110d6bec0d109ce85aac1d483cfbf
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:44:32.091] [INFO ] Prepared b4f83f7117c2fe7af81fba6f0b750a30c02110d6bec0d109ce85aac1d483cfbf
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:44:32.091] [INFO ] Committing b4f83f7117c2fe7af81fba6f0b750a30c02110d6bec0d109ce85aac1d483cfbf
opencbdc-tx-1-shard0-1 | [2022-02-05 18:44:32.092] [INFO ] Processing apply b4f83f7117c2fe7af81fba6f0b750a30c02110d6bec0d109ce85aac1d483cfbf
opencbdc-tx-1-shard0-1 | [2022-02-05 18:44:32.094] [INFO ] Done apply b4f83f7117c2fe7af81fba6f0b750a30c02110d6bec0d109ce85aac1d483cfbf
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:44:32.095] [INFO ] Committed b4f83f7117c2fe7af81fba6f0b750a30c02110d6bec0d109ce85aac1d483cfbf
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:44:32.095] [INFO ] Discarding b4f83f7117c2fe7af81fba6f0b750a30c02110d6bec0d109ce85aac1d483cfbf
opencbdc-tx-1-shard0-1 | [2022-02-05 18:44:32.096] [INFO ] Processing discard b4f83f7117c2fe7af81fba6f0b750a30c02110d6bec0d109ce85aac1d483cfbf
opencbdc-tx-1-shard0-1 | [2022-02-05 18:44:32.096] [INFO ] Done discard b4f83f7117c2fe7af81fba6f0b750a30c02110d6bec0d109ce85aac1d483cfbf
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:44:32.140] [INFO ] Discarded b4f83f7117c2fe7af81fba6f0b750a30c02110d6bec0d109ce85aac1d483cfbf
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:44:32.141] [INFO ] dtxn done: b4f83f7117c2fe7af81fba6f0b750a30c02110d6bec0d109ce85aac1d483cfbf t: 1150337300 size: 1
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:45:35.656] [INFO ] dtxn start: fc93cf082dd957dde5b1ad858a46fc93705e1ae8e54072506355a626fa1a12e7 size: 1
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:45:35.656] [INFO ] Preparing fc93cf082dd957dde5b1ad858a46fc93705e1ae8e54072506355a626fa1a12e7
opencbdc-tx-1-shard0-1 | [2022-02-05 18:45:35.660] [INFO ] Processing lock fc93cf082dd957dde5b1ad858a46fc93705e1ae8e54072506355a626fa1a12e7 with 1 txs
opencbdc-tx-1-shard0-1 | [2022-02-05 18:45:35.660] [INFO ] Done lock fc93cf082dd957dde5b1ad858a46fc93705e1ae8e54072506355a626fa1a12e7
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:45:35.660] [INFO ] Prepared fc93cf082dd957dde5b1ad858a46fc93705e1ae8e54072506355a626fa1a12e7
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:45:35.660] [INFO ] Committing fc93cf082dd957dde5b1ad858a46fc93705e1ae8e54072506355a626fa1a12e7
opencbdc-tx-1-shard0-1 | [2022-02-05 18:45:35.704] [INFO ] Processing apply fc93cf082dd957dde5b1ad858a46fc93705e1ae8e54072506355a626fa1a12e7
opencbdc-tx-1-shard0-1 | [2022-02-05 18:45:36.450] [INFO ] Done apply fc93cf082dd957dde5b1ad858a46fc93705e1ae8e54072506355a626fa1a12e7
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:45:36.450] [INFO ] Committed fc93cf082dd957dde5b1ad858a46fc93705e1ae8e54072506355a626fa1a12e7
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:45:36.450] [INFO ] Discarding fc93cf082dd957dde5b1ad858a46fc93705e1ae8e54072506355a626fa1a12e7
opencbdc-tx-1-shard0-1 | [2022-02-05 18:45:36.452] [INFO ] Processing discard fc93cf082dd957dde5b1ad858a46fc93705e1ae8e54072506355a626fa1a12e7
opencbdc-tx-1-shard0-1 | [2022-02-05 18:45:36.452] [INFO ] Done discard fc93cf082dd957dde5b1ad858a46fc93705e1ae8e54072506355a626fa1a12e7
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:45:36.453] [INFO ] Discarded fc93cf082dd957dde5b1ad858a46fc93705e1ae8e54072506355a626fa1a12e7
opencbdc-tx-1-coordinator0-1 | [2022-02-05 18:45:36.453] [INFO ] dtxn done: fc93cf082dd957dde5b1ad858a46fc93705e1ae8e54072506355a626fa1a12e7 t: 796709800 size: 1
Sample run:
(base) ---------- 12:42:10 (duc@DucMacBook) :~/Dev2/opencbdc-tx-1 ----------
==> docker run --network 2pc-network -ti opencbdc-tx /bin/bash
root@baf4416898d9:/opt/tx-processor# ./build/src/uhs/client/client-cli 2pc-compose.cfg mempool0.dat wallet0.dat mint 1000 2000
[2022-02-05 18:42:36.109] [WARN ] Existing wallet file not found
[2022-02-05 18:42:36.109] [WARN ] Existing client file not found
5784da5beef3171ddc73cd02e9acc67a64b664b3d09d6291310700829d4b38b3
root@baf4416898d9:/opt/tx-processor# ./build/src/uhs/client/client-cli 2pc-compose.cfg mempool0.dat wallet0.dat info
Balance: $20000.00, UTXOs: 1000, pending TXs: 0
root@baf4416898d9:/opt/tx-processor# ./build/src/uhs/client/client-cli 2pc-compose.cfg mempool0.dat wallet0.dat mint 10000 5000
0b601646a0f50438801918f236fc3a5dfbc2da063b9ec4b3fcbb9cbf1d978302
root@baf4416898d9:/opt/tx-processor# ./build/src/uhs/client/client-cli 2pc-compose.cfg mempool0.dat wallet0.dat info
Balance: $520000.00, UTXOs: 11000, pending TXs: 0
root@baf4416898d9:/opt/tx-processor# ./build/src/uhs/client/client-cli 2pc-compose.cfg mempool1.dat wallet1.dat newaddress
[2022-02-05 18:43:31.813] [WARN ] Existing wallet file not found
[2022-02-05 18:43:31.813] [WARN ] Existing client file not found
usd1qpzf0nya7zvh9yjkcmxdmng6avkr0xfg70sqzqwul56ne96g7ht9uaskp7z
root@baf4416898d9:/opt/tx-processor# ./build/src/uhs/client/client-cli 2pc-compose.cfg mempool0.dat wallet0.dat send 22000000 usd1qpzf0nya7zvh9yjkcmxdmng6avkr0xfg70sqzqwul56ne96g7ht9uaskp7z
tx_id:
79cc8ceb2a7d6d64b7a4ef4e3a30245ae6e937d3004d8ec796c78fd972b3cb7d
Data for recipient importinput:
79cc8ceb2a7d6d64b7a4ef4e3a30245ae6e937d3004d8ec796c78fd972b3cb7d0000000000000000f8556dfb9adf68d191fb2553b070a79a5db50690f8bbaf1ff61cc22a11f4c54280b14f0100000000
Sentinel responded: Confirmed
root@baf4416898d9:/opt/tx-processor# ./build/src/uhs/client/client-cli 2pc-compose.cfg mempool0.dat wallet0.dat info
Balance: $300000.00, UTXOs: 6600, pending TXs: 0
root@baf4416898d9:/opt/tx-processor# ./build/src/uhs/client/client-cli 2pc-compose.cfg mempool0.dat wallet0.dat mint 5000 100
0d1e1f0d39240aee9a6f056da61e4c62870f3e3d054a333fbda8549b641cb598
root@baf4416898d9:/opt/tx-processor# ./build/src/uhs/client/client-cli 2pc-compose.cfg mempool0.dat wallet0.dat info
Balance: $305000.00, UTXOs: 11600, pending TXs: 0
root@baf4416898d9:/opt/tx-processor#
Affected Branch
trunk
Basic Diagnostics
[X] I've pulled the latest changes on the affected branch and the issue is still present.
[X] The issue is reproducible in docker
Description
After launching the system, run the following: ./build/src/uhs/client/client-cli 2pc-compose.cfg mempool0.dat wallet0.dat mint 1000 2000
The above will try to mint one thousand (1000) $20 dollar bills. After submission, this transaction will be stuck in pending state and never complete. This happens when minting to a new wallet or an existing wallet.
Code of Conduct