Commit Graph

6931 Commits

Author SHA1 Message Date
Jonas Schnelli
5deab0d5fa [Wallet] Bugfix: FRT: don't terminate when keypool is empty
Github-Pull: #9295
Rebased-From: c24a4f5981d47d55aa9e4eb40294832a4d38fb80
2018-01-06 15:33:50 +03:00
MarcoFalke
5c6c445cf4 [rpc] Deprecate getinfo 2018-01-06 15:23:24 +03:00
MarcoFalke
2ddde6bf92 [rpc] ParseHash: Fail when length is not 64 2018-01-06 15:05:09 +03:00
Masahiko Hyuga
e403754e15 fix getnettotals RPC description about timemillis. 2018-01-06 15:04:25 +03:00
matthias
106dc385ee Change all instance of 'GMT epoch' to 'Unix epoch' 2018-01-06 15:04:03 +03:00
jnewbery
7307b5f5a1 Don't return the address of a P2SH of a P2SH. 2018-01-06 15:01:34 +03:00
Wladimir J. van der Laan
bf9cd01f5c rpc: Generate auth cookie in hex instead of base64
Base64 contains '/', and the '/' character in credentials is problematic
for AuthServiceProxy which represents the RPC endpoint as an URI with
user and password embedded.

Closes #8399.
2018-01-06 14:51:14 +03:00
Luke Dashjr
8d0a8afe73 Bugfix: Trivial: RPC: getblockchaininfo help: pruneheight is the lowest, not highest, block 2018-01-06 14:50:55 +03:00
Jonas Schnelli
621f5f19d9 [RPC] Fix createrawtx sequence number unsigned int parsing 2018-01-06 14:43:52 +03:00
Suhas Daftuar
bc7d750fd6 Refactor logic for converting mempool entries to JSON 2018-01-06 14:42:30 +03:00
MarcoFalke
9067422492 [rpc] fundrawtransaction feeRate: Use BTC/kB
Also introduce UniValueType

UniValueType is a wrapper for UniValue::VType which allows setting
a typeAny flag. This flag indicates the type does not matter.

(Used by RPCTypeCheckObj)
2018-01-06 14:41:03 +03:00
MarcoFalke
ac8653f486 [rpc] fundrawtransaction: Fix help text and interface 2018-01-06 14:40:55 +03:00
Jonas Schnelli
893db80a40 [Bitcoin-Tx] Add tests for sequence number support 2018-01-06 14:38:26 +03:00
Jonas Schnelli
6b045bd557 [bitcoin-tx] allow to set nSequence number over the in= command 2018-01-06 14:38:18 +03:00
Jonas Schnelli
3756163ce0 [RPC] createrawtransaction: add option to set the sequence number per input 2018-01-06 14:38:11 +03:00
Jonas Schnelli
3674e65b54 Add more clear interface for CoinControl.h regarding individual feerate 2018-01-06 14:37:42 +03:00
Jonas Schnelli
4aab709412 [RPC] add feerate option to fundrawtransaction 2018-01-06 14:37:33 +03:00
Andrew
7a685072ab Create signmessagewithprivkey rpc 2018-01-06 14:35:15 +03:00
lateminer
ff53759be8 Fix: rpc: Register calls where they are defined 2018-01-06 14:19:30 +03:00
João Barbosa
fe292ef786 Add lockUnspents option to fundrawtransaction 2018-01-06 14:09:45 +03:00
João Barbosa
0e8da90b0a Add change options to fundrawtransaction 2018-01-06 14:09:13 +03:00
João Barbosa
94c2d82643 Add strict flag to RPCTypeCheckObj
Strict flag forces type check on all object keys.
2018-01-06 14:04:44 +03:00
Wladimir J. van der Laan
b460adbab0 rpc: Register calls where they are defined 2018-01-06 13:58:48 +03:00
lateminer
36888feaff Fix: List solvability in listunspent output and improve help 2018-01-06 03:21:24 +03:00
lateminer
564defb161 Turn blockchain.cpp and mining.cpp into their real shape 2018-01-06 02:00:23 +03:00
Daniel Cousens
780775d5bd move rpc* to rpc/ 2018-01-06 01:57:48 +03:00
lateminer
135dab2ee4 Prepare rpcblockchain.cpp and rpcmining.cpp for further actions 2018-01-06 01:57:40 +03:00
Jonas Schnelli
6bab17dc2d [RPC, Wallet] Move RPC dispatch table registration to wallet/ code 2018-01-06 01:27:37 +03:00
Daniel Cousens
ce7f082de5 remove unnecessary LOCK(cs_main) 2018-01-06 01:12:54 +03:00
jl2012
fe710e3612 RPC: Hide softfork if timeout is 0 2018-01-06 01:12:35 +03:00
MarcoFalke
6df97ea819 [rpcwallet] Don't use floating point 2018-01-06 01:10:19 +03:00
Jonas Nick
d312c5b847 Reduce unnecessary hashing in signrawtransaction 2018-01-06 01:06:11 +03:00
Wladimir J. van der Laan
d6c228b173 rpc: Add relaytxes flag to getnetworkinfo
Re-work of PR #7841 by dragongem45.
Closes #7771.
2018-01-06 01:05:10 +03:00
Wladimir J. van der Laan
e0de81556a net: Add fRelayTxes flag
Add a fRelayTxes to keep track of the relay transaction flag
we send to other peers.
2018-01-06 01:05:02 +03:00
instagibbs
541225b63a push back getaddednodeinfo dead value 2018-01-06 01:04:08 +03:00
Pieter Wuille
c23ecc1256 List solvability in listunspent output and improve help 2018-01-06 01:02:21 +03:00
Jonas Schnelli
f2fe8fc5df [ZMQ] append a message sequence number to every ZMQ notification 2018-01-06 01:02:03 +03:00
Jonas Schnelli
b125c6e461 [ZMQ] refactor message string 2018-01-06 00:54:05 +03:00
mrbandrews
583764d8df Speed up getchaintips. 2018-01-06 00:51:40 +03:00
Wladimir J. van der Laan
51a43ca5fe rpc: make sure gettxoutsetinfo hash has txids
The key (transaction id for the following outputs) should be serialized
to the HashWriter.

This is a problem as it means different transactions in the same
position with the same outputs will potentially result in the same hash.

Fixes primary concern of #7758.
2018-01-06 00:51:12 +03:00
Wladimir J. van der Laan
b81f2085e0 crypto: bytes counts are 64 bit
Byte counts for SHA256, SHA512, SHA1 and RIPEMD160 must be 64 bits.
`size_t` has a different size per platform, causing divergent results
when hashing more than 4GB of data.
2018-01-06 00:51:03 +03:00
Wladimir J. van der Laan
350739ab6c txdb: Add Cursor() method to CCoinsView to iterate over UTXO set
Add a method Cursor() to CCoinsView that returns a cursor which can be
used to iterate over the whole UTXO set.

- rpc: Change gettxoutsetinfo to use new Cursor method

- txdb: Remove GetStats method - Now that GetStats is implemented in
  terms of Cursor, remove it.
2018-01-06 00:50:16 +03:00
Pavel Janík
9fd6bc6564 RPC: do not print ping info in getpeerinfo when no ping received yet, fix help 2018-01-06 00:43:19 +03:00
Rusty Russell
b7f1e510a2 getblockchaininfo: make bip9_softforks an object, not an array. 2018-01-06 00:42:54 +03:00
mruddy
06eff6304b RPC: add versionHex in getblock and getblockheader JSON results; expand data in getblockchaininfo bip9_softforks field. 2018-01-06 00:30:29 +03:00
Denis Lukianov
e5199580b6 Correct importaddress help reference to importpubkey 2018-01-06 00:24:35 +03:00
Pavel Vasin
7393f538e0 use cached block hash in blockToJSON() 2018-01-06 00:23:40 +03:00
Wladimir J. van der Laan
b8d0c5dacc rpc: Input-from-stdin mode for bitcoin-cli
Implements #7442 by adding an option `-stdin` which reads
additional arguments from stdin, one per line.

For example

```bash
echo -e "mysecretcode\n120" | src/bitcoin-cli -stdin walletpassphrase
echo -e "walletpassphrase\nmysecretcode\n120" | src/bitcoin-cli -stdin
```
2018-01-06 00:20:17 +03:00
paveljanik
87bb358c8a Fix typo, wrong information in gettxout help text. 2018-01-06 00:16:47 +03:00
Wladimir J. van der Laan
f63b6323ce rpc: remove cs_main lock from createrawtransaction
This is a pure utility function that doesn't use
main's data structures, so it does not require that lock.
2018-01-06 00:15:53 +03:00