Patrick Strateman
e94e583f48
Improve CWallet API with new GetAccountPubkey function.
...
Remove one more caller that is passing CWalletDB.
2018-01-07 13:33:46 +03:00
Patrick Strateman
acf8c3d9ce
Improve CWallet API with new AccountMove function.
2018-01-07 13:33:24 +03:00
Pieter Wuille
4db9e14749
Don't use assert for catching randomness failures
2018-01-07 13:28:01 +03:00
Pieter Wuille
f9d2d353ff
Always require OS randomness when generating secret keys
2018-01-07 13:27:51 +03:00
Patrick Strateman
ee0b4321ff
Move GetAccountBalance from rpcwallet.cpp into CWallet::GetAccountBalance
2018-01-07 13:22:45 +03:00
João Barbosa
26f8d58b92
Fix lockunspents help message
2018-01-07 13:16:18 +03:00
João Barbosa
395af2c291
Prevent multiple calls to CWallet::AvailableCoins
2018-01-07 13:15:46 +03:00
Alex Morcos
db8b7554fd
Don't resend wallet txs that aren't in our own mempool
2018-01-07 13:11:12 +03:00
Wladimir J. van der Laan
289e2f80b4
wallet: Warn on unexpected EOF while salvaging wallet
...
Check for EOF before every getline, and warn when reading gets to EOF
before the end of the data.
Stricter error checking could shed more light on issues such as #7463
and #7379 .
2018-01-07 12:57:13 +03:00
Chris Moore
412c8b9946
Reduce inefficiency of GetAccountAddress()
...
Don't scan the wallet to see if the current key has been used if we're going to make a new key anyway.
Stop scanning the wallet as soon as we see that the current key has been used.
Don't call isValid() twice on the current key.
2018-01-07 12:56:47 +03:00
Thomas Snider
3b0604b58d
[ui] Add toggle for unblinding password fields
2018-01-07 01:18:20 +03:00
lateminer
b4b34ff770
Get rid of remaining auto_ptr mentions
2018-01-06 16:44:09 +03:00
lateminer
99238ff2c8
Merge remote-tracking branch 'janko33bd/Blackcoin-Lore' into rpc-updates-0.13
2018-01-06 16:41:28 +03:00
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
janko33bd
c71b057f3b
Merge pull request #12 from lateminer/remove-client-date
...
build: Get rid of `CLIENT_DATE`
2018-01-06 09:50:57 +01:00
Wladimir J. van der Laan
fb6d61317d
auto_ptr → unique_ptr
2018-01-06 03:29:32 +03:00
lateminer
36888feaff
Fix: List solvability in listunspent output and improve help
2018-01-06 03:21:24 +03:00
janko33bd
b8609fc6e3
removing forgotten height
2018-01-06 00:44:43 +01:00
janko33bd
71c4f88bf9
fixing to compile
2018-01-06 00:37:31 +01: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