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

Commit

Permalink
Merge version 0.2.5.16 from dev
Browse files Browse the repository at this point in the history
Merge version 0.2.5.16 from dev
  • Loading branch information
Greg-Griffith authored Jun 13, 2019
2 parents 06804e7 + d5c71b4 commit e021ed5
Show file tree
Hide file tree
Showing 123 changed files with 4,284 additions and 2,737 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ linux-build
win32-build
test/config.ini
test/cache/*
cache/*

!src/leveldb*/Makefile

Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 0)
define(_CLIENT_VERSION_MINOR, 2)
define(_CLIENT_VERSION_REVISION, 5)
define(_CLIENT_VERSION_BUILD, 15) # version 99 here indicates an unreleased version
define(_CLIENT_VERSION_BUILD, 16) # version 99 here indicates an unreleased version
define(_CLIENT_VERSION_IS_RELEASE, true)
define(_COPYRIGHT_YEAR, 2019)
define(_COPYRIGHT_HOLDERS,[The %s developers])
Expand Down Expand Up @@ -1008,7 +1008,7 @@ ac_configure_args="${ac_configure_args} --disable-shared --with-pic --with-bignu
if test "x$enable_debug" = xyes; then
ac_configure_args="${ac_configure_args} --enable-debug"
fi
AC_CONFIG_SUBDIRS([src/secp256k1 src/univalue])
AC_CONFIG_SUBDIRS([src/secp256k1 src/univalue src/rsm])

AC_OUTPUT

Expand Down
2 changes: 1 addition & 1 deletion contrib/gitian-descriptors/gitian-arm.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: "eccoin-linux-0.2.5.15"
name: "eccoin-linux-0.2.5.16"
enable_cache: true
suites:
- "bionic"
Expand Down
2 changes: 1 addition & 1 deletion contrib/gitian-descriptors/gitian-linux.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: "eccoin-linux-0.2.5.15"
name: "eccoin-linux-0.2.5.16"
enable_cache: true
suites:
- "bionic"
Expand Down
2 changes: 1 addition & 1 deletion contrib/gitian-descriptors/gitian-osx.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: "eccoin-osx-0.2.5.15"
name: "eccoin-osx-0.2.5.16"
enable_cache: true
suites:
- "bionic"
Expand Down
2 changes: 1 addition & 1 deletion contrib/gitian-descriptors/gitian-win.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: "eccoin-win-0.2.5.15"
name: "eccoin-win-0.2.5.16"
enable_cache: true
suites:
- "bionic"
Expand Down
73 changes: 36 additions & 37 deletions doc/rpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Examples:

addmultisigaddress
------------------
Add a nrequired-to-sign multisignature address to the wallet.
Add a nrequired-to-sign multisignature address to the wallet.

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

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

Result:
Result:
bitcoinaddress (string) A bitcoin address associated with the keys.

Examples:
Expand All @@ -57,30 +57,30 @@ addnode "node" "add|remove|onetry"
Arguments:
1. "node" (string, required) The node (see getpeerinfo for nodes)
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
Result:

Result:
none

Examples:
1. Add a node to the node list
addnode "192.168.0.6:8333" "add"
2. Remove a node from the node list
addnode "192.168.0.6:8333" "remove"
3. Try a connection to a node once
addnode "192.168.0.6:8333" "onetry"


backupwallet
------------
Safely copies wallet.dat to destination, which can be a directory or a path with filename.

Syntax:
backupwallet "destination"

Arguments:
1. "destination" (string) The destination directory or file

Result:
Result:
no output, but a file with the name given should appear in the desired directory

Examples:
Expand All @@ -98,21 +98,21 @@ clearbanned
Arguments:
none

Result:
Result:
none

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


createmultisig
--------------
Creates a multi-signature address with n signature of m keys required. It returns a json object with the address and redeemScript.

Syntax:
createmultisig nrequired ["key",...]

Arguments:
1. nrequired (numeric, required) The number of required signatures out of the n keys or addresses.
2. "keys" (string, required) A json array of keys which are E-CurrencyCoin addresses or hex-encoded public keys
Expand Down Expand Up @@ -140,7 +140,7 @@ Decode a hex-encoded script.

Syntax:
decodescript "hex"

Arguments:
1. "hex" (string) the hex encoded script

Expand All @@ -155,7 +155,7 @@ JSON object in the following format
"address" (string) E-CurrencyCoin address
,...
],
"p2sh",
"p2sh",
"address" (string) script address
}

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

Syntax:
dumpprivkey "address"

Arguments:
1. "address" (string, required) The E-CurrencyCoin address for the private key

Expand Down Expand Up @@ -221,7 +221,7 @@ dumpwallet "test"
encryptwallet
-------------
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.

Syntax:
encryptwallet "passphrase"

Expand All @@ -230,12 +230,12 @@ Arguments:

Result:
no output, but it will shut down the server to finish the process

Examples:
1. Encrypt you wallet with the password 123abc
encryptwallet "123abc"


generate
--------
Mine blocks immediately (before the RPC call returns). Note: this function can only be used on the regtest network
Expand All @@ -253,7 +253,7 @@ Examples:
1. Generate 11 blocks
generate 11


getaccount
----------
DEPRECATED. Returns the account associated with the given address.
Expand All @@ -271,14 +271,14 @@ Examples:
1. Get the account for the address ED1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XZ
getaccount "ED1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XZ"


getaccountaddress
-----------------
DEPRECATED. Returns the current Bitcoin address for receiving payments to this account.

Syntax:
"getaccountaddress "account"

Arguments:
"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.

Expand All @@ -289,14 +289,14 @@ Examples:
1. Get address for account myaccount
getaccountaddress "myaccount"


getaddednodeinfo
----------------
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.

Syntax:
getaddednodeinfo dns ( "node" )

Arguments:
1. dns (boolean, required) If false, only a list of added nodes will be provided, otherwise connected information will also be available.
2. "node" (string, optional) If provided, return information about this specific node, otherwise all nodes are returned.
Expand All @@ -316,7 +316,7 @@ Result:
}
,...
]

Examples:
1. Get information about all connected nodes
getaddednodeinfo "true"
Expand All @@ -333,13 +333,13 @@ getaddressesbyaccount "account"

Arguments:
1. "account" (string, required) The account name.

Result: JSON array of string
[
"bitcoinaddress" (string) a bitcoin address associated with the given account
,...
]

Examples:
1. Get the address of the account tabby
getaddressesbyaccount "tabby"
Expand All @@ -351,7 +351,7 @@ If account is not specified, returns the server's total available balance. If ac

Syntax:
getbalance ( "account" minconf includeWatchonly )

Arguments:
1. "account" (string, optional) DEPRECATED. The selected account, or "*" for entire wallet. It may be the default account using "".
2. minconf (numeric, optional, default=1) Only include transactions confirmed at least this many times.
Expand All @@ -370,13 +370,13 @@ Examples:
getbestblockhash
----------------
Returns the hash of the best (tip) block in the longest block chain.

Syntax:
getbestblockhash

Arguments:
none

Result
"hex" (string) the block hash hex encoded

Expand All @@ -388,10 +388,10 @@ Examples
getblock
--------
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>.

Syntax:
"getblock "hash" ( verbose )

Arguments:
"1. "hash" (string, required) The block hash
"2. verbose (boolean, optional, default=true) true for a json object, false for the hex encoded data
Expand All @@ -417,7 +417,7 @@ Result (for verbose = true):
"previousblockhash" : "hash", (string) The hash of the previous block
"nextblockhash" : "hash" (string) The hash of the next block
}

Result (for verbose=false):
"data" (string) A string that is serialized, hex-encoded data for block 'hash'.

Expand All @@ -438,7 +438,6 @@ getblockchaininfo
" "bestblockhash": "...", (string) the hash of the currently best block
" "difficulty": xxxxxx, (numeric) the current difficulty
" "mediantime": xxxxxx, (numeric) median time for the current best block
" "verificationprogress": xxxx, (numeric) estimate of verification progress [0..1]
" "chainwork": "xxxx" (string) total amount of work in active chain, in hexadecimal
" "pruned": xx, (boolean) if the blocks are subject to pruning
" "pruneheight": xxxxxx, (numeric) heighest block available
Expand Down Expand Up @@ -543,7 +542,7 @@ getblocktemplate
" {
" "data" : "xxxx", (string) transaction data encoded in hexadecimal (byte-for-byte)
" "hash" : "xxxx", (string) hash/id encoded in little-endian hexadecimal
" "depends" : [ (array) array of numbers
" "depends" : [ (array) array of numbers
" 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
" ,...
" ],
Expand All @@ -554,13 +553,13 @@ getblocktemplate
" ,...
" ],
" "coinbaseaux" : { (json object) data that should be included in the coinbase's scriptSig content
" "flags" : "flags" (string)
" "flags" : "flags" (string)
" },
" "coinbasevalue" : n, (numeric) maximum allowable input to coinbase transaction, including the generation award and transaction fees (in Satoshis)
" "coinbasetxn" : { ... }, (json object) information for coinbase transaction
" "target" : "xxxx", (string) The hash target
" "mintime" : xxx, (numeric) The minimum timestamp appropriate for next block time in seconds since epoch (Jan 1 1970 GMT)
" "mutable" : [ (array of string) list of ways the block template may be changed
" "mutable" : [ (array of string) list of ways the block template may be changed
" "value" (string) A way the block template may be changed, e.g. 'time', 'transactions', 'prevblock'
" ,...
" ],
Expand Down
14 changes: 7 additions & 7 deletions qa/pull-tester/rpc-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,23 +179,26 @@ def option_passed(option_without_dashes):
#Tests
testScripts = [ RpcTest(t) for t in [
#'rawtransactions', ???
#'rest', ???
# 'multi_rpc', ???
'multi_rpc',
# 'fundrawtransaction', ???
# 'reindex', ???
'reindex',
'getchaintips',
'httpbasics',
'keypool',
'listtransactions',
#'mempool_limit',
#'mempool_reorg',
#'mempool_resurrect_test',
#'mempool_spendcoinbase',
'mintingtest',
'nodehandling',
'proxy_test',
'receivedby',
'txpropagate',
'verifydb',
'wallet',
'walletbackup',
'zapwallettxes',
#
Disabled('mempool_limit', "FAILS"),
Disabled('mempool_reorg', "FAILS"),
Expand All @@ -208,13 +211,10 @@ def option_passed(option_without_dashes):
Disabled('invalidtxrequest', "FAILS"),
Disabled('merkle_blocks', "FAILS"),
Disabled('miningtest', "FAILS"),
Disabled('zapwallettxes', "FAILS"),
Disabled('sendheaders', "FAILS"),
Disabled('signrawtransactions', "FAILS"),
#
Disabled('wallet-dump', "TIMEOUT"),
Disabled('listtransactions', "TIMEOUT"),
Disabled('receivedby', "TIMEOUT"),
Disabled('txn_doublespend --mineblock', "TIMEOUT"),
Disabled('txn_clone', "TIMEOUT"),
Disabled('notify', "TIMEOUT"),
Expand Down Expand Up @@ -490,7 +490,7 @@ def comms(timeout):

if proc.poll() is not None:
if not got_outputs[0]:
comms(3)
comms(50)
log_stdout.seek(0), log_stderr.seek(0)
stdout = log_stdout.read()
stderr = log_stderr.read()
Expand Down
Loading

0 comments on commit e021ed5

Please sign in to comment.