Skip to content

Commit 55ad95e

Browse files
authored
Merge pull request #3 from SmartArray/tests/ci
Merge with branch tests/ci
2 parents 24b4d23 + 292915b commit 55ad95e

33 files changed

+191
-116
lines changed

.github/workflows/ci-coverage.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: 'Build and check'
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
os: [x86_64-linux-gnu]
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Cache apt depencenies
16+
uses: actions/cache@v2
17+
id: cache-apt
18+
with:
19+
path: "~/apt-cache"
20+
key: apt-cache
21+
22+
- name: Cache depends
23+
id: cache-dependencies
24+
uses: actions/cache@v2
25+
with:
26+
path: depends/${{ matrix.os }}
27+
key: ${{ matrix.os }}-${{ hashFiles('depends/packages/*.mk') }}
28+
29+
- name: Install apt dependencies
30+
env:
31+
CACHE_HIT: ${{steps.cache-apt.outputs.cache-hit}}
32+
DEPS: build-essential libtool autotools-dev automake pkg-config bsdmainutils curl git ca-certificates ccache
33+
run: |
34+
if [[ "$CACHE_HIT" == 'true' ]]; then
35+
sudo cp --force --recursive ~/apt-cache/* /
36+
else
37+
sudo apt-get update && sudo apt-get install -yq $DEPS
38+
mkdir -p ~/apt-cache
39+
for dep in $DEPS; do
40+
dpkg -L $dep | while IFS= read -r f; do if test -f $f; then echo $f; fi; done | xargs cp --parents --target-directory ~/apt-cache/
41+
done
42+
fi
43+
44+
- name: Build depends
45+
if: steps.cache-dependencies.outputs.cache-hit != 'true' && steps.cache-apt.outputs.cache-hit != 'true'
46+
run: cd depends/ && make -j4 HOST=${{matrix.os}}
47+
48+
- name: Auto generate
49+
run: ./autogen.sh
50+
51+
- name: configure
52+
run: ./configure --with-incompatible-bdb --prefix=`pwd`/depends/${{ matrix.os }}
53+
54+
- name: make
55+
run: make -j4
56+
57+
- name: check
58+
run: make check
59+

src/chainparams.cpp

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,13 @@ class CMainParams : public CChainParams {
218218
assert(genesis.hashMerkleRoot == uint256S("0x72ddd9496b004221ed0557358846d9248ecd4c440ebd28ed901efc18757d0fad"));
219219

220220
// Note that of those with the service bits flag, most only support a subset of possible options
221-
vSeeds.emplace_back("seed1.digibyte.io");
222-
vSeeds.emplace_back("seed2.digibyte.io");
223-
vSeeds.emplace_back("seed3.digibyte.io");
224-
vSeeds.emplace_back("seed.digibyte.io");
225-
vSeeds.emplace_back("digihash.co");
226-
vSeeds.emplace_back("digiexplorer.info");
227-
vSeeds.emplace_back("seed.digibyteprojects.com");
228-
221+
vSeeds.emplace_back("seed.digibyte.org"); // Website collective
222+
vSeeds.emplace_back("seed.digibyteservers.io"); // ChillingSilence
223+
vSeeds.emplace_back("seed.digibyte.io"); // JaredTate
224+
vSeeds.emplace_back("seed.digibyteblockchain.com"); // JS555
225+
vSeeds.emplace_back("dnsseed.esotericizm.site"); // DigiContributor
226+
vSeeds.emplace_back("seed.digibytefoundation.org"); // DigiByteFoundation
227+
vSeeds.emplace_back("seed.digibyte.host"); // SashaD
229228

230229

231230
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,30);
@@ -412,11 +411,8 @@ class CTestNetParams : public CChainParams {
412411
vFixedSeeds.clear();
413412
vSeeds.clear();
414413
// nodes with support for servicebits filtering should be at the top
415-
vSeeds.emplace_back("seed1.digibyte.io");
416-
vSeeds.emplace_back("seed2.digibyte.io");
417-
vSeeds.emplace_back("seed3.digibyte.io");
418-
vSeeds.emplace_back("testnet-seed.digibyteprojects.com");
419-
vSeeds.emplace_back("testnet-1.us.digibyteservers.io");
414+
vSeeds.emplace_back("seed.testnet-1.us.digibyteservers.io");
415+
vSeeds.emplace_back("seed.testnetexplorer.digibyteservers.io");
420416

421417
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,126);
422418
base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,140);
@@ -498,6 +494,8 @@ class CRegTestParams : public CChainParams {
498494
consensus.nLocalTargetAdjustment = 4; //target adjustment per algo
499495
consensus.nLocalDifficultyAdjustment = 4; //difficulty adjustment per algo
500496

497+
consensus.BIP65Height = 1351;
498+
consensus.BIP66Height = 1251;
501499

502500
// DigiByte Hard Fork Block Heights
503501
consensus.multiAlgoDiffChangeTarget = 145; // Block 145,000 MultiAlgo Hard Fork

src/qt/test/paymentrequestdata.h

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -443,24 +443,32 @@ d2hj739GDLz0b5KuJ2SG6VknMRQM976w/m2qlq0ccVGaaZ2zMIGfpzL3p6adwx/5\
443443
//
444444
const char* paymentrequest5_cert2_BASE64 =
445445
"\
446-
Egt4NTA5K3NoYTI1NhrQBArNBDCCAkkwggExoAMCAQICAQEwDQYJKoZIhvcNAQEL\
447-
BQAwITEfMB0GA1UEAwwWUGF5bWVudFJlcXVlc3QgVGVzdCBDQTAeFw0xNTAxMTEx\
448-
ODIxMDhaFw0yNTAxMDgxODIxMDhaMCExHzAdBgNVBAMMFlBheW1lbnRSZXF1ZXN0\
449-
IFRlc3QgQ0EwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMsZqzkzeBGo+i2N\
450-
mUak3Ciodr1V7S062VOy7N0OQYNDQHYkgDFAUET7cEb5VJaHPv5m3ppTBpU9xBcf\
451-
wbHHUt4VjA+mhRmYrl1khjvZM+X8kEqvWn20BtcM9R6r0yIYec8UERDDHBleL/P8\
452-
RkxEnVLjYTV9zigCXfMsgYb3EQShAgMBAAGjEDAOMAwGA1UdEwQFMAMBAf8wDQYJ\
453-
KoZIhvcNAQELBQADggEBABUJpl3QCqsoDSxAsQdV6zKT4VGV76AzoGj7etQsQY+r\
454-
+S26VfWh/fMobEzuxFChr0USgLJ6FoK78hAtoZvt1lrye9yqFv/ig3WLWsJKWHHb\
455-
3RT6oR03CIwZXF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+
f51/Ka4l3NxtLIx8c2kaKlMlb/3gh8Rh3FEwHAwZhVrOEjj21r5Se+1IlWT8oR8LO\
470+
PL+0TJqAvQED+zmxtCLEADnWvCLNrerghzSoDzBJSJdQL/9efeZPACszEw79sqKpg\
471+
lVDej8waw4ZZ7v2wNUm6kwG0fKpuHA1b88isyRQ6yLCOj4M\
464472
";
465473

466474
#endif // DIGIBYTE_QT_TEST_PAYMENTREQUESTDATA_H

src/qt/test/rpcnestedtests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void RPCNestedTests::rpcNestedTests()
7676
QVERIFY(result == result2);
7777

7878
RPCConsole::RPCExecuteCommandLine(*node, result, "getblock(getbestblockhash())[tx][0]", &filtered);
79-
QVERIFY(result == "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b");
79+
QVERIFY(result == "72ddd9496b004221ed0557358846d9248ecd4c440ebd28ed901efc18757d0fad");
8080
QVERIFY(filtered == "getblock(getbestblockhash())[tx][0]");
8181

8282
RPCConsole::RPCParseCommandLine(nullptr, result, "importprivkey", false, &filtered);

src/test/main_tests.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646
#define SECONDS_PER_MONTH (60 * 60 * 24 * 365 / 12)
4747
#endif
4848

49+
#ifndef ENABLE_TESTNET_SUBSIDY_TESTS
50+
#define ENABLE_TESTNET_SUBSIDY_TESTS 0
51+
#endif
52+
4953
BOOST_FIXTURE_TEST_SUITE(main_tests, TestingSetup)
5054

5155
static void TestBlockSubsidy(const Consensus::Params& consensusParams, int nMaxBlocks, CAmount* nSumOut)
@@ -192,9 +196,8 @@ BOOST_AUTO_TEST_CASE(block_subsidy_test)
192196
#if OUTPUT_SUPPLY_SAMPLES_ENABLED
193197
// Output the accumulated supply until END_OF_SUPPLY_CURVE
194198
std::cout << "(mainnet): MAXIMUM SUPPLY: " << sum << " dgbSATS (" << (sum / COIN) << " DGB)";
195-
#else
196-
// Only perform test on TESTNET too, if we are not
197-
// outputting the sampled supply data.
199+
#elif ENABLE_TESTNET_SUBSIDY_TESTS != 0
200+
// Only perform test on TESTNET too if requested so.
198201
TestBlockSubsidy(testChainParams->GetConsensus(), END_OF_SUPPLY_CURVE, NULL); // Testnet
199202
#endif
200203
}

src/test/txvalidationcache_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,10 @@ BOOST_FIXTURE_TEST_CASE(checkinputs_test, TestChain100Setup)
220220
CBlock block;
221221

222222
block = CreateAndProcessBlock({spend_tx}, p2pk_scriptPubKey);
223+
LOCK(cs_main);
223224
BOOST_CHECK(chainActive.Tip()->GetBlockHash() == block.GetHash());
224225
BOOST_CHECK(pcoinsTip->GetBestBlock() == block.GetHash());
225226

226-
LOCK(cs_main);
227227

228228
// Test P2SH: construct a transaction that is valid without P2SH, and
229229
// then test validity with P2SH.

test/util/data/digibyte-util-test.json

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"description": "Creates a blank transaction when nothing is piped into digibyte-tx"
1717
},
1818
{ "exec": "./digibyte-tx",
19-
"args": ["-json","-create"],
19+
"args": ["-json","-create","nversion=2"],
2020
"output_cmp": "blanktxv2.json",
2121
"description": "Creates a blank transaction (output in json)"
2222
},
@@ -130,7 +130,7 @@
130130
{ "exec": "./digibyte-tx",
131131
"args":
132132
["-create",
133-
"outaddr=1:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o:garbage"],
133+
"outaddr=1:D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44:garbage"],
134134
"return_code": 1,
135135
"error_txt": "error: TX output missing or too many separators",
136136
"description": "Malformed outaddr argument (too many separators). Expected to fail."
@@ -154,38 +154,40 @@
154154
{ "exec": "./digibyte-tx",
155155
"args":
156156
["-create",
157+
"nversion=2",
157158
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
158159
"in=bf829c6bcf84579331337659d31f89dfd138f7f7785802d5501c92333145ca7c:18",
159160
"in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1",
160-
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
161-
"outaddr=4:1P8yWvZW8jVihP1bzHeqfE4aoXNX8AVa46"],
161+
"outaddr=0.18:D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44",
162+
"outaddr=4:DQHjpVccQymF9g4zFsxZzf1fN2dRDF4Bdg"],
162163
"output_cmp": "txcreate1.hex",
163164
"description": "Creates a new transaction with three inputs and two outputs"
164165
},
165166
{ "exec": "./digibyte-tx",
166167
"args":
167168
["-json",
168169
"-create",
170+
"nversion=2",
169171
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
170172
"in=bf829c6bcf84579331337659d31f89dfd138f7f7785802d5501c92333145ca7c:18",
171173
"in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1",
172-
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
173-
"outaddr=4:1P8yWvZW8jVihP1bzHeqfE4aoXNX8AVa46"],
174+
"outaddr=0.18:D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44",
175+
"outaddr=4:DQHjpVccQymF9g4zFsxZzf1fN2dRDF4Bdg"],
174176
"output_cmp": "txcreate1.json",
175177
"description": "Creates a new transaction with three inputs and two outputs (output in json)"
176178
},
177179
{ "exec": "./digibyte-tx",
178-
"args": ["-create", "outscript=0:"],
180+
"args": ["-create", "outscript=0:", "nversion=2"],
179181
"output_cmp": "txcreate2.hex",
180182
"description": "Creates a new transaction with a single empty output script"
181183
},
182184
{ "exec": "./digibyte-tx",
183-
"args": ["-json", "-create", "outscript=0:"],
185+
"args": ["-json", "-create", "nversion=2", "outscript=0:"],
184186
"output_cmp": "txcreate2.json",
185187
"description": "Creates a new transaction with a single empty output script (output in json)"
186188
},
187189
{ "exec": "./digibyte-tx",
188-
"args": ["02000000000100000000000000000000000000"],
190+
"args": ["02000000000100000000000000000000000000", "nversion=2"],
189191
"output_cmp": "txcreate2.hex",
190192
"description": "Parses a transaction with no inputs and a single output script"
191193
},
@@ -236,35 +238,36 @@
236238
},
237239
{ "exec": "./digibyte-tx",
238240
"args":
239-
["-create", "nversion=1",
241+
["-create",
240242
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0",
241243
"set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]",
242244
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]",
243245
"sign=ALL",
244-
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"],
246+
"outaddr=0.001:DRdFhX5DamBnxgF8rTiRdUwLjt3xHRFLe4"],
245247
"output_cmp": "txcreatesignv1.hex",
246248
"description": "Creates a new v1 transaction with a single input and a single output, and then signs the transaction"
247249
},
248250
{ "exec": "./digibyte-tx",
249251
"args":
250252
["-json",
251-
"-create", "nversion=1",
253+
"-create",
252254
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0",
253255
"set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]",
254256
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]",
255257
"sign=ALL",
256-
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"],
258+
"outaddr=0.001:DRdFhX5DamBnxgF8rTiRdUwLjt3xHRFLe4"],
257259
"output_cmp": "txcreatesignv1.json",
258260
"description": "Creates a new v1 transaction with a single input and a single output, and then signs the transaction (output in json)"
259261
},
260262
{ "exec": "./digibyte-tx",
261263
"args":
262264
["-create",
265+
"nversion=2",
263266
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0",
264267
"set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]",
265268
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]",
266269
"sign=ALL",
267-
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"],
270+
"outaddr=0.001:DRdFhX5DamBnxgF8rTiRdUwLjt3xHRFLe4"],
268271
"output_cmp": "txcreatesignv2.hex",
269272
"description": "Creates a new transaction with a single input and a single output, and then signs the transaction"
270273
},
@@ -275,7 +278,7 @@
275278
"set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]",
276279
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":\"0foo\",\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]",
277280
"sign=ALL",
278-
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"],
281+
"outaddr=0.001:DRdFhX5DamBnxgF8rTiRdUwLjt3xHRFLe4"],
279282
"return_code": 1,
280283
"error_txt": "error: prevtxs internal object typecheck fail",
281284
"description": "Tests the check for invalid vout index in prevtxs for sign"
@@ -345,7 +348,7 @@
345348
"args":
346349
["-create",
347350
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
348-
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
351+
"outaddr=0.18:D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44",
349352
"outdata=4:54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"],
350353
"output_cmp": "txcreatedata1.hex",
351354
"description": "Creates a new transaction with one input, one address output and one data output"
@@ -355,16 +358,17 @@
355358
["-json",
356359
"-create", "nversion=1",
357360
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
358-
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
361+
"outaddr=0.18:D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44",
359362
"outdata=4:54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"],
360363
"output_cmp": "txcreatedata1.json",
361364
"description": "Creates a new v1 transaction with one input, one address output and one data output (output in json)"
362365
},
363366
{ "exec": "./digibyte-tx",
364367
"args":
365368
["-create",
369+
"nversion=2",
366370
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
367-
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
371+
"outaddr=0.18:D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44",
368372
"outdata=54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"],
369373
"output_cmp": "txcreatedata2.hex",
370374
"description": "Creates a new transaction with one input, one address output and one data (zero value) output"
@@ -373,26 +377,29 @@
373377
"args":
374378
["-json",
375379
"-create",
380+
"nversion=2",
376381
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
377-
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
382+
"outaddr=0.18:D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44",
378383
"outdata=54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"],
379384
"output_cmp": "txcreatedata2.json",
380385
"description": "Creates a new transaction with one input, one address output and one data (zero value) output (output in json)"
381386
},
382387
{ "exec": "./digibyte-tx",
383388
"args":
384389
["-create",
390+
"nversion=2",
385391
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:4294967293",
386-
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o"],
392+
"outaddr=0.18:D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44"],
387393
"output_cmp": "txcreatedata_seq0.hex",
388394
"description": "Creates a new transaction with one input with sequence number and one address output"
389395
},
390396
{ "exec": "./digibyte-tx",
391397
"args":
392398
["-json",
393399
"-create",
400+
"nversion=2",
394401
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:4294967293",
395-
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o"],
402+
"outaddr=0.18:D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44"],
396403
"output_cmp": "txcreatedata_seq0.json",
397404
"description": "Creates a new transaction with one input with sequence number and one address output (output in json)"
398405
},
@@ -452,7 +459,7 @@
452459
"description": "Creates a new transaction with a single 2-of-3 multisig in a P2WSH output, wrapped in P2SH (output in json)"
453460
},
454461
{ "exec": "./digibyte-tx",
455-
"args": ["-json", "-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:047d1368ba7ae01c94bc32293efd70bd7e3be7aa7912d07d0b1c659c1008d179b8642f5fb90f47580feb29f045e216ff5a4716d3a0fed36da414d332046303c44a:S"],
462+
"args": ["-json", "-create", "nversion=2", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:047d1368ba7ae01c94bc32293efd70bd7e3be7aa7912d07d0b1c659c1008d179b8642f5fb90f47580feb29f045e216ff5a4716d3a0fed36da414d332046303c44a:S"],
456463
"output_cmp": "txcreatemultisig5.json",
457464
"description": "Uncompressed pubkeys should work just fine for non-witness outputs"
458465
},

0 commit comments

Comments
 (0)