Commit graph

13169 commits

Author SHA1 Message Date
instagibbs
c87debb048 Add parentChainPowLimit, check in CheckBitcoinProof 2017-06-16 12:02:12 -04:00
instagibbs
e30340a8d6 CreateTransaction stores destination blinding keys,factors, and amounts 2017-06-16 12:02:12 -04:00
instagibbs
7acb86cf8b Don't tally -1 when funds are unknown 2017-06-16 12:02:12 -04:00
Warren Togami
95d75386d5 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-06-16 12:02:12 -04:00
instagibbs
9dff6d06e5 correct unknown value comment 2017-06-16 12:02:12 -04:00
Gregory Sanders
f52659fbb1 Range proofs in witness 2017-06-16 12:02:12 -04:00
instagibbs
8e8e842774 IsStandard rule for withdrawLock dust 2017-06-16 12:02:12 -04:00
instagibbs
0d1151f1a3 block validation on script error of properly signed block 2017-06-16 12:02:12 -04:00
instagibbs
f7424036e9 Startup RPC check, failed block queue setup 2017-06-16 12:02:12 -04:00
instagibbs
bd55bf3d36 Rework CallRPC, use bitcoind cookie auth 2017-06-16 12:02:12 -04:00
Warren Togami
785e36ea18 Use Socks5ErrorString() to decode error responses from socks proxy. 2017-06-16 12:02:12 -04:00
instagibbs
50d393b95b Fix CTxOut null set/checking 2017-06-16 12:02:11 -04:00
instagibbs
514d1d1b9f Use dummy nonce for pegin, simplify rpcs 2017-06-16 12:02:08 -04:00
instagibbs
c5cc67a999 Rename wallet-based blinding pubkey lookups 2017-06-15 14:31:27 -04:00
instagibbs
0caab49550 Don't DoS ban peers for possibly valid pegin blocks 2017-06-15 14:31:27 -04:00
instagibbs
17963bfd6e Remove unneeded CT addresses 2017-06-15 14:31:26 -04:00
instagibbs
eb3d576a99 Actually enforce withdraw consensus rules 2017-06-15 14:31:26 -04:00
Warren Togami
ef2ba60e18 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-06-15 14:31:26 -04:00
Jonas Nick
afcdcf4fa8 Enable peginsign in tx tool 2017-06-15 14:31:26 -04:00
Warren Togami
53733a3dc3 Add CLIENT_VERSION_BUILD to version. 2017-06-15 14:31:26 -04:00
Warren Togami
3bd85f5f30 Fix CLI help text to refer to sidechain RPC port 9041 instead of Bitcoin 8332 2017-06-15 14:31:26 -04:00
Warren Togami
4e9ed87b53 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-06-15 14:31:26 -04:00
Warren Togami
3ccf1a248f 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-06-15 14:31:26 -04:00
Warren Togami
201a189a70 Rename RPC claimwithdraw to claimpegin for clarity 2017-06-15 14:31:26 -04:00
Warren Togami
193e4afcab 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-06-15 14:31:26 -04:00
Warren Togami
12e87083d7 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-06-15 14:31:26 -04:00
Matt Corallo
76eea62931 Add comment explaining check 2017-06-15 14:31:26 -04:00
Pieter Wuille
dd79f80f19 Never include unknown amounts in listreceived* 2017-06-15 14:31:26 -04:00
Pieter Wuille
03b5b6be2f Fix caching of blinding data 2017-06-15 14:31:26 -04:00
instagibbs
efaf6fac37 Added testing of mainchain withdraw tx tracking 2017-06-15 14:31:26 -04:00
instagibbs
6cf921ce3a Reactivated rpc_rawparams (TODO: Split into appropriate squashes) 2017-06-15 14:31:26 -04:00
Matt Corallo
9e19904123 Default-refuse to sendrawtransaction an unblinded, but could be, tx 2017-06-15 14:31:26 -04:00
instagibbs
c81a726f64 Basic locked utxo testing 2017-06-15 14:31:26 -04:00
instagibbs
0fcad6701f Various updates to locked-output UTXO selection 2017-06-15 14:31:26 -04:00
Gregory Sanders
9b939ba363 generate coinbase goes to prescribed scriptDestination 2017-06-15 14:31:26 -04:00
Matt Corallo
8244b22a91 Require coinbase outputs be to a specific script 2017-06-15 14:31:26 -04:00
Matt Corallo
74d19d221e re-enable generate RPC for unsigned chains 2017-06-15 14:31:26 -04:00
Matt Corallo
9d473c544f new chain 2017-06-15 14:31:25 -04:00
Matt Corallo
cf73307455 Set network parameters 2017-06-15 14:31:25 -04:00
Matt Corallo
91c4218496 Make withdraw-combines combining to > MAX_MONEY / 100 non-std 2017-06-15 14:31:25 -04:00
Matt Corallo
22fe56ca87 Split genesis output into 100 identical outputs 2017-06-15 14:31:25 -04:00
Matt Corallo
52bb2803d3 Fix genesis block creation 2017-06-15 14:31:25 -04:00
Matt Corallo
d2b1a83e4c Randomly permutate ports 2017-06-15 14:31:25 -04:00
Matt Corallo
6d0b606519 Change default datadir 2017-06-15 14:31:25 -04:00
Glenn Willen
e02b8a8354 Give a nice error for "make bitcoind", instead of a misleading one. 2017-06-15 14:31:25 -04:00
Matt Corallo
239bddd64f Rename binaries and shared libraries 2017-06-15 14:31:25 -04:00
Matt Corallo
73c9b76053 Elements Beta branding 2017-06-15 14:31:25 -04:00
Matt Corallo
2b0cab2401 Copy Elements alpha's README 2017-06-15 14:31:25 -04:00
Gregory Sanders
405363c75e Respond to getheaders even in IBD mode 2017-06-15 14:31:25 -04:00
Matt Corallo
5f88da386c No DoS for sending a tx/block claiming an unconfirmed btc block 2017-06-15 14:31:25 -04:00