Skip to content

Commit cc299f3

Browse files
committed
Fix testnet config missing params. add wait-tx-confirm in transfer token test.
1 parent 51d4953 commit cc299f3

File tree

2 files changed

+34
-3
lines changed

2 files changed

+34
-3
lines changed

conf/testnet/config.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,30 @@ BlockProducer:
2626
b: 0
2727
c: 0
2828
d: 6148914694092305796
29+
ChainFileName: chain.db
30+
BPGenesisInfo:
31+
Version: 1
32+
Producer: "0000000000000000000000000000000000000000000000000000000000000001"
33+
MerkleRoot: "0000000000000000000000000000000000000000000000000000000000000001"
34+
ParentHash: "0000000000000000000000000000000000000000000000000000000000000001"
35+
Timestamp: 2019-01-02T13:33:00Z
36+
BlockHash: f745ca6427237aac858dd3c7f2df8e6f3c18d0f1c164e07a1c6b8eebeba6b154
37+
BaseAccounts:
38+
- Address: ba0ba731c7a76ccef2c1170f42038f7e228dfb474ef0190dfe35d9a37911ed37
39+
StableCoinBalance: 10000000000000000000
40+
CovenantCoinBalance: 10000000000000000000
41+
- Address: 1a7b0959bbd0d0ec529278a61c0056c277bffe75b2646e1699b46b10a90210be
42+
StableCoinBalance: 10000000000000000000
43+
CovenantCoinBalance: 10000000000000000000
44+
- Address: 9235bc4130a2ed4e6c35ea189dab35198ebb105640bedb97dd5269cc80863b16
45+
StableCoinBalance: 10000000000000000000
46+
CovenantCoinBalance: 10000000000000000000
47+
- Address: 9e1618775cceeb19f110e04fbc6c5bca6c8e4e9b116e193a42fe69bf602e7bcd
48+
StableCoinBalance: 10000000000000000000
49+
CovenantCoinBalance: 10000000000000000000
50+
- Address: 58aceaf4b730b54bf00c0fb3f7b14886de470767f313c2d108968cd8bf0794b7
51+
StableCoinBalance: 10000000000000000000
52+
CovenantCoinBalance: 10000000000000000000
2953
KnownNodes:
3054
- ID: 00000000000589366268c274fdc11ec8bdb17e668d2f619555a2e9c1a29c91d8
3155
Nonce:
@@ -90,3 +114,12 @@ KnownNodes:
90114
Addr: "127.0.0.1:4661"
91115
PublicKey: 02ec784ca599f21ef93fe7abdc68d78817ab6c9b31f2324d15ea174d9da498b4c4
92116
Role: Client
117+
QPS: 1000
118+
ChainBusPeriod: 0s
119+
BillingBlockCount: 60
120+
BPPeriod: 10s
121+
BPTick: 3s
122+
SQLChainPeriod: 1m0s
123+
SQLChainTick: 10s
124+
SQLChainTTL: 10
125+
MinProviderDeposit: 1000000

test/testnet_client/run.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ wallet=$(awk '{print $3}' wallet.txt)
2020

2121
#transfer some coin to above address
2222
${PROJECT_DIR}/bin/cql -config ${PROJECT_DIR}/conf/testnet/config.yaml -transfer \
23-
'{"addr":"'${wallet}'", "amount":"100000000 Particle"}'
24-
25-
sleep 60
23+
'{"addr":"'${wallet}'", "amount":"100000000 Particle"}' -wait-tx-confirm
2624

2725
${PROJECT_DIR}/bin/cql -config conf/config.yaml -create 2 | tee dsn.txt
2826

0 commit comments

Comments
 (0)