Skip to content

Commit 56256ec

Browse files
Hyunsik Jeongmergify[bot]
authored andcommitted
Split tendermint scheme file in E2E/TPS test
One is for E2E test, and the other one is for TPS test.
1 parent d881496 commit 56256ec

File tree

4 files changed

+86
-3
lines changed

4 files changed

+86
-3
lines changed

test/src/integration.long/tendermint.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ describeSkippedInTravis("Tendermint ", function() {
5353
];
5454
nodes = validatorAddresses.map(address => {
5555
return new CodeChain({
56-
chain: `${__dirname}/../scheme/tendermint.json`,
56+
chain: `${__dirname}/../scheme/tendermint-int.json`,
5757
argv: [
5858
"--engine-signer",
5959
address.toString(),
@@ -254,7 +254,7 @@ describeSkippedInTravis("Tendermint ", function() {
254254
it("Gossip with not-permissioned node", async function() {
255255
function createNodeWihtOutSigner() {
256256
return new CodeChain({
257-
chain: `${__dirname}/../scheme/tendermint.json`,
257+
chain: `${__dirname}/../scheme/tendermint-int.json`,
258258
argv: [
259259
"--no-miner",
260260
"--password-path",
File renamed without changes.

test/src/scheme/tendermint-tps.json

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
"name": "Tendermint",
3+
"engine": {
4+
"tendermint": {
5+
"params": {
6+
"validators": [
7+
"0x4f1541fc6bdec60bf0ac6380a8e3914a469fe6cd4fa817c890d5823cfdda83932f61dc083e1b6736dadeceb5afd3fcfbac915e5fa2c9c20acf1c30b080114d7f",
8+
"0x1ac8248deb29a58c4bdbfce031fb22c7ba3bcc9384bf6de058a1c8bef5a17422cf8ca26666a5505684db7364eabeed6fc678b02658ae7c1848a4ae6e50244cf2",
9+
"0xdb3a858d2bafd2cb5382fcf366b847a86b58b42ce1fc29fec0cb0315af881a2ad495045adbdbc86ef7a777b541c4e62a0747f25ff6068a5ec3a052c690c4ff8a",
10+
"0x42829b18de338aa3abf5e6d80cd511121bf9d34be9a135bbace32a3226479e7f3bb6af76c11dcc724a1666a22910d756b075d54d8fdd97be11efd7a0ac3bb222"
11+
],
12+
"timeoutPropose": 10000,
13+
"timeoutProposeDelta": 5000,
14+
"timeoutPrevote": 10000,
15+
"timeoutPrevoteDelta": 5000,
16+
"timeoutPrecommit": 10000,
17+
"timeoutPrecommitDelta": 5000,
18+
"timeoutCommit": 10000,
19+
"genesisStakes": {
20+
"tccq9h7vnl68frvqapzv3tujrxtxtwqdnxw6yamrrgd": 100000
21+
}
22+
}
23+
}
24+
},
25+
"params": {
26+
"maxExtraDataSize": "0x20",
27+
"maxMetadataSize": "0x0400",
28+
"maxTextContentSize": "0x0200",
29+
"networkID": "tc",
30+
"minPayCost" : 10,
31+
"minSetRegularKeyCost" : 10,
32+
"minCreateShardCost" : 10,
33+
"minSetShardOwnersCost" : 10,
34+
"minSetShardUsersCost" : 10,
35+
"minWrapCccCost" : 10,
36+
"minCustomCost" : 10,
37+
"minStoreCost" : 10,
38+
"minRemoveCost" : 10,
39+
"minMintAssetCost" : 10,
40+
"minTransferAssetCost" : 10,
41+
"minChangeAssetSchemeCost" : 10,
42+
"minComposeAssetCost" : 10,
43+
"minDecomposeAssetCost" : 10,
44+
"minUnwrapCccCost" : 10,
45+
"maxBodySize": 4194304,
46+
"snapshotPeriod": 16384
47+
},
48+
"genesis": {
49+
"seal": {
50+
"tendermint": {
51+
"prev_view": "0x0",
52+
"cur_view": "0x0",
53+
"precommits": [
54+
"0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
55+
]
56+
}
57+
},
58+
"score": "0x20000",
59+
"author": "tccq94guhkrfndnehnca06dlkxcfuq0gdlamvw9ga4f",
60+
"timestamp": "0x00",
61+
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
62+
"extraData": "0x"
63+
},
64+
"accounts": {
65+
"tccqyqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqyca3rwt": { "balance": "1000000", "seq": "0" },
66+
"tccqyqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqgfrhflv": { "balance": "1000000", "seq": "0" },
67+
"tccqyqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqvxf40sk": { "balance": "1000000", "seq": "0" },
68+
"tccqyqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqszkma5z": { "balance": "1000000", "seq": "0" },
69+
"tccqyqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq5duemmc": { "balance": "1000000" },
70+
"tccqyqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqcuzl32l": { "balance": "1000000" },
71+
"tccqyqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqungah99": { "balance": "1000000" },
72+
"tccqyqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqpqc2ul2h": { "balance": "1000000" },
73+
"tccq8vapdlstar6ghmqgczp6j2e83njsqq0tsvaxm9u": { "balance": "1000000" },
74+
"tccq9h7vnl68frvqapzv3tujrxtxtwqdnxw6yamrrgd": { "balance": "10000000000000000000", "seq": "0" }
75+
},
76+
"shards": {
77+
"0": {
78+
"seq": 0,
79+
"owners": ["tccq94guhkrfndnehnca06dlkxcfuq0gdlamvw9ga4f"],
80+
"users": []
81+
}
82+
}
83+
}

test/src/tendermint.test/local.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import CodeChain from "../helper/spawn";
3838
];
3939
nodes = validatorAddresses.map(address => {
4040
return new CodeChain({
41-
chain: `${__dirname}/../scheme/tendermint.json`,
41+
chain: `${__dirname}/../scheme/tendermint-tps.json`,
4242
argv: [
4343
"--engine-signer",
4444
address.toString(),

0 commit comments

Comments
 (0)