Skip to content
This repository was archived by the owner on Feb 1, 2021. It is now read-only.

Commit e021ed5

Browse files
Merge version 0.2.5.16 from dev
Merge version 0.2.5.16 from dev
2 parents 06804e7 + d5c71b4 commit e021ed5

File tree

123 files changed

+4284
-2737
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+4284
-2737
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ linux-build
117117
win32-build
118118
test/config.ini
119119
test/cache/*
120+
cache/*
120121

121122
!src/leveldb*/Makefile
122123

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ AC_PREREQ([2.60])
1212
define(_CLIENT_VERSION_MAJOR, 0)
1313
define(_CLIENT_VERSION_MINOR, 2)
1414
define(_CLIENT_VERSION_REVISION, 5)
15-
define(_CLIENT_VERSION_BUILD, 15) # version 99 here indicates an unreleased version
15+
define(_CLIENT_VERSION_BUILD, 16) # version 99 here indicates an unreleased version
1616
define(_CLIENT_VERSION_IS_RELEASE, true)
1717
define(_COPYRIGHT_YEAR, 2019)
1818
define(_COPYRIGHT_HOLDERS,[The %s developers])
@@ -1008,7 +1008,7 @@ ac_configure_args="${ac_configure_args} --disable-shared --with-pic --with-bignu
10081008
if test "x$enable_debug" = xyes; then
10091009
ac_configure_args="${ac_configure_args} --enable-debug"
10101010
fi
1011-
AC_CONFIG_SUBDIRS([src/secp256k1 src/univalue])
1011+
AC_CONFIG_SUBDIRS([src/secp256k1 src/univalue src/rsm])
10121012

10131013
AC_OUTPUT
10141014

contrib/gitian-descriptors/gitian-arm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: "eccoin-linux-0.2.5.15"
2+
name: "eccoin-linux-0.2.5.16"
33
enable_cache: true
44
suites:
55
- "bionic"

contrib/gitian-descriptors/gitian-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: "eccoin-linux-0.2.5.15"
2+
name: "eccoin-linux-0.2.5.16"
33
enable_cache: true
44
suites:
55
- "bionic"

contrib/gitian-descriptors/gitian-osx.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: "eccoin-osx-0.2.5.15"
2+
name: "eccoin-osx-0.2.5.16"
33
enable_cache: true
44
suites:
55
- "bionic"

contrib/gitian-descriptors/gitian-win.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: "eccoin-win-0.2.5.15"
2+
name: "eccoin-win-0.2.5.16"
33
enable_cache: true
44
suites:
55
- "bionic"

doc/rpc.md

Lines changed: 36 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Examples:
2323

2424
addmultisigaddress
2525
------------------
26-
Add a nrequired-to-sign multisignature address to the wallet.
26+
Add a nrequired-to-sign multisignature address to the wallet.
2727

2828
Each key is a Bitcoin address or hex-encoded public key. If 'account' is specified (DEPRECATED), assign address to that account.
2929

@@ -39,7 +39,7 @@ Arguments:
3939
]
4040
3. account (string, OPTIONAL) DEPRECATED. An account to assign the addresses to.
4141

42-
Result:
42+
Result:
4343
bitcoinaddress (string) A bitcoin address associated with the keys.
4444

4545
Examples:
@@ -57,30 +57,30 @@ addnode "node" "add|remove|onetry"
5757
Arguments:
5858
1. "node" (string, required) The node (see getpeerinfo for nodes)
5959
2. "command" (string, required) 'add' to add a node to the list, 'remove' to remove a node from the list, 'onetry' to try a connection to the node once
60-
61-
Result:
60+
61+
Result:
6262
none
63-
63+
6464
Examples:
6565
1. Add a node to the node list
6666
addnode "192.168.0.6:8333" "add"
6767
2. Remove a node from the node list
6868
addnode "192.168.0.6:8333" "remove"
6969
3. Try a connection to a node once
7070
addnode "192.168.0.6:8333" "onetry"
71-
72-
71+
72+
7373
backupwallet
7474
------------
7575
Safely copies wallet.dat to destination, which can be a directory or a path with filename.
7676

7777
Syntax:
7878
backupwallet "destination"
79-
79+
8080
Arguments:
8181
1. "destination" (string) The destination directory or file
8282

83-
Result:
83+
Result:
8484
no output, but a file with the name given should appear in the desired directory
8585

8686
Examples:
@@ -98,21 +98,21 @@ clearbanned
9898
Arguments:
9999
none
100100

101-
Result:
101+
Result:
102102
none
103103

104104
Examples:
105105
1. Delete the list of nodes that are banned from connecting to our node
106106
clearbanned
107107

108-
108+
109109
createmultisig
110110
--------------
111111
Creates a multi-signature address with n signature of m keys required. It returns a json object with the address and redeemScript.
112112

113113
Syntax:
114114
createmultisig nrequired ["key",...]
115-
115+
116116
Arguments:
117117
1. nrequired (numeric, required) The number of required signatures out of the n keys or addresses.
118118
2. "keys" (string, required) A json array of keys which are E-CurrencyCoin addresses or hex-encoded public keys
@@ -140,7 +140,7 @@ Decode a hex-encoded script.
140140

141141
Syntax:
142142
decodescript "hex"
143-
143+
144144
Arguments:
145145
1. "hex" (string) the hex encoded script
146146

@@ -155,7 +155,7 @@ JSON object in the following format
155155
"address" (string) E-CurrencyCoin address
156156
,...
157157
],
158-
"p2sh",
158+
"p2sh",
159159
"address" (string) script address
160160
}
161161

@@ -188,7 +188,7 @@ Reveals the private key corresponding to 'address'. Then the importprivkey can b
188188

189189
Syntax:
190190
dumpprivkey "address"
191-
191+
192192
Arguments:
193193
1. "address" (string, required) The E-CurrencyCoin address for the private key
194194

@@ -221,7 +221,7 @@ dumpwallet "test"
221221
encryptwallet
222222
-------------
223223
Encrypts the wallet with 'passphrase'. This is for first time encryption. After this, any calls that interact with private keys such as sending or signing will require the passphrase to be set prior the making these calls. Use the walletpassphrase call for this, and then walletlock call. If the wallet is already encrypted, use the walletpassphrasechange call. Note that this will shutdown the server.
224-
224+
225225
Syntax:
226226
encryptwallet "passphrase"
227227

@@ -230,12 +230,12 @@ Arguments:
230230

231231
Result:
232232
no output, but it will shut down the server to finish the process
233-
233+
234234
Examples:
235235
1. Encrypt you wallet with the password 123abc
236236
encryptwallet "123abc"
237237

238-
238+
239239
generate
240240
--------
241241
Mine blocks immediately (before the RPC call returns). Note: this function can only be used on the regtest network
@@ -253,7 +253,7 @@ Examples:
253253
1. Generate 11 blocks
254254
generate 11
255255

256-
256+
257257
getaccount
258258
----------
259259
DEPRECATED. Returns the account associated with the given address.
@@ -271,14 +271,14 @@ Examples:
271271
1. Get the account for the address ED1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XZ
272272
getaccount "ED1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XZ"
273273

274-
274+
275275
getaccountaddress
276276
-----------------
277277
DEPRECATED. Returns the current Bitcoin address for receiving payments to this account.
278-
278+
279279
Syntax:
280280
"getaccountaddress "account"
281-
281+
282282
Arguments:
283283
"1. "account" (string, required) The account name for the address. It can also be set to the empty string "" to represent the default account. The account does not need to exist, it will be created and a new address created if there is no account by the given name.
284284

@@ -289,14 +289,14 @@ Examples:
289289
1. Get address for account myaccount
290290
getaccountaddress "myaccount"
291291

292-
292+
293293
getaddednodeinfo
294294
----------------
295295
Returns information about the given added node, or all added nodes (note that onetry addnodes are not listed here) If dns is false, only a list of added nodes will be provided, otherwise connected information will also be available.
296296

297297
Syntax:
298298
getaddednodeinfo dns ( "node" )
299-
299+
300300
Arguments:
301301
1. dns (boolean, required) If false, only a list of added nodes will be provided, otherwise connected information will also be available.
302302
2. "node" (string, optional) If provided, return information about this specific node, otherwise all nodes are returned.
@@ -316,7 +316,7 @@ Result:
316316
}
317317
,...
318318
]
319-
319+
320320
Examples:
321321
1. Get information about all connected nodes
322322
getaddednodeinfo "true"
@@ -333,13 +333,13 @@ getaddressesbyaccount "account"
333333

334334
Arguments:
335335
1. "account" (string, required) The account name.
336-
336+
337337
Result: JSON array of string
338338
[
339339
"bitcoinaddress" (string) a bitcoin address associated with the given account
340340
,...
341341
]
342-
342+
343343
Examples:
344344
1. Get the address of the account tabby
345345
getaddressesbyaccount "tabby"
@@ -351,7 +351,7 @@ If account is not specified, returns the server's total available balance. If ac
351351

352352
Syntax:
353353
getbalance ( "account" minconf includeWatchonly )
354-
354+
355355
Arguments:
356356
1. "account" (string, optional) DEPRECATED. The selected account, or "*" for entire wallet. It may be the default account using "".
357357
2. minconf (numeric, optional, default=1) Only include transactions confirmed at least this many times.
@@ -370,13 +370,13 @@ Examples:
370370
getbestblockhash
371371
----------------
372372
Returns the hash of the best (tip) block in the longest block chain.
373-
373+
374374
Syntax:
375375
getbestblockhash
376376

377377
Arguments:
378378
none
379-
379+
380380
Result
381381
"hex" (string) the block hash hex encoded
382382

@@ -388,10 +388,10 @@ Examples
388388
getblock
389389
--------
390390
If verbose is false, returns a string that is serialized, hex-encoded data for block 'hash'. If verbose is true, returns an Object with information about block <hash>.
391-
391+
392392
Syntax:
393393
"getblock "hash" ( verbose )
394-
394+
395395
Arguments:
396396
"1. "hash" (string, required) The block hash
397397
"2. verbose (boolean, optional, default=true) true for a json object, false for the hex encoded data
@@ -417,7 +417,7 @@ Result (for verbose = true):
417417
"previousblockhash" : "hash", (string) The hash of the previous block
418418
"nextblockhash" : "hash" (string) The hash of the next block
419419
}
420-
420+
421421
Result (for verbose=false):
422422
"data" (string) A string that is serialized, hex-encoded data for block 'hash'.
423423

@@ -438,7 +438,6 @@ getblockchaininfo
438438
" "bestblockhash": "...", (string) the hash of the currently best block
439439
" "difficulty": xxxxxx, (numeric) the current difficulty
440440
" "mediantime": xxxxxx, (numeric) median time for the current best block
441-
" "verificationprogress": xxxx, (numeric) estimate of verification progress [0..1]
442441
" "chainwork": "xxxx" (string) total amount of work in active chain, in hexadecimal
443442
" "pruned": xx, (boolean) if the blocks are subject to pruning
444443
" "pruneheight": xxxxxx, (numeric) heighest block available
@@ -543,7 +542,7 @@ getblocktemplate
543542
" {
544543
" "data" : "xxxx", (string) transaction data encoded in hexadecimal (byte-for-byte)
545544
" "hash" : "xxxx", (string) hash/id encoded in little-endian hexadecimal
546-
" "depends" : [ (array) array of numbers
545+
" "depends" : [ (array) array of numbers
547546
" n (numeric) transactions before this one (by 1-based index in 'transactions' list) that must be present in the final block if this one is
548547
" ,...
549548
" ],
@@ -554,13 +553,13 @@ getblocktemplate
554553
" ,...
555554
" ],
556555
" "coinbaseaux" : { (json object) data that should be included in the coinbase's scriptSig content
557-
" "flags" : "flags" (string)
556+
" "flags" : "flags" (string)
558557
" },
559558
" "coinbasevalue" : n, (numeric) maximum allowable input to coinbase transaction, including the generation award and transaction fees (in Satoshis)
560559
" "coinbasetxn" : { ... }, (json object) information for coinbase transaction
561560
" "target" : "xxxx", (string) The hash target
562561
" "mintime" : xxx, (numeric) The minimum timestamp appropriate for next block time in seconds since epoch (Jan 1 1970 GMT)
563-
" "mutable" : [ (array of string) list of ways the block template may be changed
562+
" "mutable" : [ (array of string) list of ways the block template may be changed
564563
" "value" (string) A way the block template may be changed, e.g. 'time', 'transactions', 'prevblock'
565564
" ,...
566565
" ],

qa/pull-tester/rpc-tests.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -179,23 +179,26 @@ def option_passed(option_without_dashes):
179179
#Tests
180180
testScripts = [ RpcTest(t) for t in [
181181
#'rawtransactions', ???
182-
#'rest', ???
183-
# 'multi_rpc', ???
182+
'multi_rpc',
184183
# 'fundrawtransaction', ???
185-
# 'reindex', ???
184+
'reindex',
186185
'getchaintips',
187186
'httpbasics',
188187
'keypool',
188+
'listtransactions',
189189
#'mempool_limit',
190190
#'mempool_reorg',
191191
#'mempool_resurrect_test',
192192
#'mempool_spendcoinbase',
193193
'mintingtest',
194194
'nodehandling',
195195
'proxy_test',
196+
'receivedby',
196197
'txpropagate',
198+
'verifydb',
197199
'wallet',
198200
'walletbackup',
201+
'zapwallettxes',
199202
#
200203
Disabled('mempool_limit', "FAILS"),
201204
Disabled('mempool_reorg', "FAILS"),
@@ -208,13 +211,10 @@ def option_passed(option_without_dashes):
208211
Disabled('invalidtxrequest', "FAILS"),
209212
Disabled('merkle_blocks', "FAILS"),
210213
Disabled('miningtest', "FAILS"),
211-
Disabled('zapwallettxes', "FAILS"),
212214
Disabled('sendheaders', "FAILS"),
213215
Disabled('signrawtransactions', "FAILS"),
214216
#
215217
Disabled('wallet-dump', "TIMEOUT"),
216-
Disabled('listtransactions', "TIMEOUT"),
217-
Disabled('receivedby', "TIMEOUT"),
218218
Disabled('txn_doublespend --mineblock', "TIMEOUT"),
219219
Disabled('txn_clone', "TIMEOUT"),
220220
Disabled('notify', "TIMEOUT"),
@@ -490,7 +490,7 @@ def comms(timeout):
490490

491491
if proc.poll() is not None:
492492
if not got_outputs[0]:
493-
comms(3)
493+
comms(50)
494494
log_stdout.seek(0), log_stderr.seek(0)
495495
stdout = log_stdout.read()
496496
stderr = log_stderr.read()

0 commit comments

Comments
 (0)