Commit graph

11548 commits

Author SHA1 Message Date
instagibbs
33609ed3ea Multithreaded amount commitment and range proof checking 2017-02-02 10:58:56 -05:00
instagibbs
56aa82fc2d Move amount verification to main 2017-02-02 10:58:56 -05:00
instagibbs
21914204c2 FIXME: Unit tests compile and pass 2017-02-02 10:58:56 -05:00
instagibbs
710dda78dd Remove CTxMemPoolEntry nValueIn since unused and we don't know it 2017-02-02 10:58:56 -05:00
instagibbs
ba699771dc Add basic testing of blinding caching functionality in wallet 2017-02-02 10:58:56 -05:00
instagibbs
8d7b7d4aff Increase ancestor/dependant size limit to 375kB 2017-02-02 10:58:56 -05:00
instagibbs
2ff3733d6b More meaningful error messages for WPV failure 2017-02-02 10:58:56 -05:00
Mark Friedenbach
eedc9606a5 Upstream: remove extraneous warning about variable being used before set (#4) 2017-02-02 10:58:56 -05:00
Pieter Wuille
5b2053211e Zero value coinbase output are exempt from fixed destination 2017-02-02 10:58:56 -05:00
Pieter Wuille
d212526c24 Add witness commitment when there are only txout witnesses 2017-02-02 10:58:56 -05:00
instagibbs
fd9a254c64 Add blindingfactors to listtransactions rpc help 2017-02-02 10:58:56 -05:00
instagibbs
89756b2cf9 More compact and pretty printing of blindingdata in ListTransactions 2017-02-02 10:58:56 -05:00
instagibbs
fe2f6c31e0 Don't log scary message about withdrawLock outputs 2017-02-02 10:58:56 -05:00
instagibbs
e637e5a5da block header commits to height 2017-02-02 10:58:56 -05:00
instagibbs
15275158b8 Add blinding data to be rpc logged 2017-02-02 10:58:55 -05:00
instagibbs
2e0973a4b3 added functions to rpc logging 2017-02-02 10:58:55 -05:00
instagibbs
2a34dbdaa5 Introduce user getter to avoid null pointers 2017-02-02 10:58:55 -05:00
instagibbs
2f5d051394 Make sure user is set for audit logging through QT 2017-02-02 10:58:55 -05:00
instagibbs
fdcb038e77 Add audit log file 2017-02-02 10:58:55 -05:00
instagibbs
5412a584f4 Add thread-local storage of rpc username 2017-02-02 10:58:55 -05:00
instagibbs
85be0821fa Add parentChainPowLimit, check in CheckBitcoinProof 2017-02-02 10:58:51 -05:00
instagibbs
8c8565c9e5 CreateTransaction stores destination blinding keys,factors, and amounts 2017-02-02 10:58:51 -05:00
instagibbs
78e8f0c8b3 Don't tally -1 when funds are unknown 2017-02-02 10:58:51 -05:00
Warren Togami
f1435bd6ed Build & Doc Only Changes: Rename Sidechain Name
* .conf and .pid file name
* configure.ac name used by gitian
* gitian descriptors use new sidechain binary names
* various runtime, debug.log, and API help messages
* various places in docs

Recommended to rename this for each different sidechain.
2017-02-02 10:58:51 -05:00
instagibbs
7a278f7a3f correct unknown value comment 2017-02-02 10:58:51 -05:00
Pieter Wuille
670e7fb32e Range proofs in witness 2017-02-02 10:58:51 -05:00
instagibbs
5093a5c61c IsStandard rule for withdrawLock dust 2017-02-02 10:58:51 -05:00
instagibbs
a75159e1f8 block validation on script error of properly signed block 2017-02-02 10:58:51 -05:00
instagibbs
9c62706831 Startup RPC check, failed block queue setup 2017-02-02 10:58:51 -05:00
instagibbs
bab5e9ef7c Rework CallRPC, use bitcoind cookie auth 2017-02-02 10:58:51 -05:00
Warren Togami
f1878a4462 Use Socks5ErrorString() to decode error responses from socks proxy. 2017-02-02 10:58:51 -05:00
instagibbs
0dbffde100 Fix CTxOut null set/checking 2017-02-02 10:58:51 -05:00
instagibbs
60625007f9 Use dummy nonce for pegin, simplify rpcs 2017-02-02 10:58:51 -05:00
instagibbs
76abf88b1a Rename wallet-based blinding pubkey lookups 2017-02-02 10:58:51 -05:00
instagibbs
3ee361cc16 Don't DoS ban peers for possibly valid pegin blocks 2017-02-02 10:58:50 -05:00
instagibbs
8b72b641a0 Remove unneeded CT addresses 2017-02-02 10:58:50 -05:00
instagibbs
a727d7629b Actually enforce withdraw consensus rules 2017-02-02 10:58:50 -05:00
Warren Togami
35c476607e Make failures to connect via Socks5() more informative and less unnecessarily scary.
* The "ERROR" was printed far too often during normal operation for what was not an error.
* Makes the Socks5() connect failure similar to the IP connect failure in debug.log.

Before:
`2016-05-09 00:15:00 ERROR: Proxy error: host unreachable`

After:
`2016-05-09 00:15:00 Socks5() connect to t6xj6wilh4ytvcs7.onion:18333 failed: host unreachable"`
2017-02-02 10:58:50 -05:00
instagibbs
d860e87296 No dust for withdrawlocks 2017-02-02 10:58:50 -05:00
Jonas Nick
b6c20c04fe Enable peginsign in tx tool 2017-02-02 10:58:50 -05:00
Warren Togami
f7b09664d5 Add CLIENT_VERSION_BUILD to version. 2017-02-02 10:58:50 -05:00
Warren Togami
69eb300ed7 Fix CLI help text to refer to sidechain RPC port 9041 instead of Bitcoin 8332 2017-02-02 10:58:50 -05:00
Warren Togami
4de4fad468 Cleanup and clarify sendtomainchain help text
* Get rid of needless newline
* Get rid of confusing "deposit" word, talk instead about the target mainchain address.
* No reason for the Cli and Rpc examples to have different addresses.
* Make the examples actually correct with a value.
2017-02-02 10:58:50 -05:00
Warren Togami
76d648b723 Rename RPC getfundingaddress to getpeginaddress for clarity
Improve the help text to better explain what the command does, and how
`getfundingaddress` parallels `getaddress` in necessitating regular backup
of wallet.dat.
2017-02-02 10:58:50 -05:00
Warren Togami
52d9da34b2 Rename RPC claimwithdraw to claimpegin for clarity 2017-02-02 10:58:50 -05:00
Warren Togami
d0feca3dca Rename blindtrust to validatepegin and invert boolean
`validatepegin=0` default means the sidechain will not verify incoming peg transactions against the bitcoind via CallRPC().
No change to default behavior.  This only clarifies the meaning of the parameter.
2017-02-02 10:58:50 -05:00
Warren Togami
baa3b0c5cc Disable -peerbloomfilters by default in sidechains
Removes Denial of Service risk on a network that will likely never
have light wallets.  User can enable it again if they reallly want it.
2017-02-02 10:58:50 -05:00
Matt Corallo
10249053d0 Add comment explaining check 2017-02-02 10:58:50 -05:00
Pieter Wuille
f4d7ccde48 Never include unknown amounts in listreceived* 2017-02-02 10:58:50 -05:00
Pieter Wuille
09060cfe0d Fix caching of blinding data 2017-02-02 10:58:50 -05:00