Commit Graph
17485 Commits
Author SHA1 Message Date
Michael Toutonghi 31bbe2343f fix staking UTXO value 2018-05-17 22:20:57 -07:00
Michael Toutonghi c2923066b2 new CNetworkBlockHeader for robust compat 2018-05-17 00:04:10 -07:00
Michael Toutonghi e96e4e61aa checking properly typed header transfer 2018-05-16 16:29:39 -07:00
Michael Toutonghi 10a01059e5 Attempt to match types in socket communication to prevent misalinged send/receive 2018-05-16 15:06:10 -07:00
Michael Toutonghi fbe86cecfa more debugging checks 2018-05-16 14:39:00 -07:00
Homu f62fff80d5 Auto merge of #3255 - str4d:sapling-value-pool, r=ebfull
Track net value entering and exiting the Sapling circuit
2018-05-16 10:46:32 -07:00
Eirik Ogilvie-Wigley 3182b4abc3 Add tests for sapling anchors 2018-05-16 10:31:53 -06:00
Michael Toutonghi cdcebd3618 more cast 2018-05-16 07:24:19 -07:00
Michael Toutonghi e5a4e868bf cast 2018-05-16 07:21:28 -07:00
Michael Toutonghi 01ff13ceb7 printf for testing on server 2018-05-16 07:18:54 -07:00
Michael Toutonghi d942c58d4a revert testing changes back to original 2018-05-16 06:10:45 -07:00
Michael Toutonghi cc19c3b08d finish testing change 2018-05-16 05:56:54 -07:00
Michael Toutonghi 351bbd2eae more testing 2018-05-16 05:50:57 -07:00
Michael Toutonghi c132b91a01 More testing for header transfers 2018-05-16 05:29:49 -07:00
Michael Toutonghi 004e332290 Additional tests 2018-05-16 01:59:23 -07:00
Michael Toutonghi 52670b7205 going back to the original type mismatch - still debugging forking issue, checkin to try on other machines 2018-05-16 00:23:55 -07:00
jl777 90416cc3b3 Merge pull request #666 from jl777/jl777
Change notary sig to CRYPTO output
2018-05-16 09:58:42 +03:00
Michael Toutonghi 3da69a3138 Trying to fix the forking issue, which is now clearly a bug in sending and receiving headers. This checkin will enable debugging and may be a fix. 2018-05-15 22:19:07 -07:00
Scott Sadler 06c960d2b7 m3 test proven 2018-05-15 22:27:10 -03:00
jl777 221cc791c3 Change notary sig to CRYPTO output 2018-05-15 22:45:16 +03:00
Michael Toutonghi 32430433f3 Fix comparison error 2018-05-15 05:35:57 -07:00
Michael Toutonghi dfcf8255ef More anti-forking on startup for slow connections 2018-05-15 05:32:09 -07:00
Michael Toutonghi 3d3a117bde Fix forking potential at startup 2018-05-15 05:00:00 -07:00
Alex Morcos bbff8631f5 Output line to debug.log when IsInitialBlockDownload latches to false 2018-05-15 22:18:11 +12:00
Gregory Maxwell f04a90afb2 IsInitialBlockDownload no longer uses header-only timestamps.
This avoids a corner case (mostly visible on testnet) where bogus
 headers can keep nodes in IsInitialBlockDownload.
2018-05-15 22:18:04 +12:00
Gregory Maxwell e41632c9fb IBD check uses minimumchain work instead of checkpoints.
This introduces a 'minimum chain work' chainparam which is intended
 to be the known amount of work in the chain for the network at the
 time of software release.  If you don't have this much work, you're
 not yet caught up.

This is used instead of the count of blocks test from checkpoints.

This criteria is trivial to keep updated as there is no element of
subjectivity, trust, or position dependence to it. It is also a more
reliable metric of sync status than a block count.
2018-05-15 21:25:19 +12:00
Kaz Wesley 02eedeeb69 IsInitialBlockDownload: usually avoid locking
Optimistically test the latch bool before taking the lock.
For all IsInitialBlockDownload calls after the first to return false,
this avoids the need to lock cs_main.
2018-05-15 21:25:19 +12:00
Wladimir J. van der Laan 29aaf13b0a Make max tip age an option instead of chainparam
After discussion in #7164 I think this is better.

Max tip age was introduced in #5987 to make it possible to run
testnet-in-a-box. But associating this behavior with the testnet chain
is wrong conceptually, as it is not needed in normal usage.
Should aim to make testnet test the software as-is.

Replace it with a (debug) option `-maxtipage`, which can be
specified only in the specific case.
2018-05-15 21:24:58 +12:00
Michael Toutonghi 1fae37f6bf Working proof of stake with new algorithm 2018-05-15 00:54:18 -07:00
Jack Grigg f55029e7d1 Correctly serialize Groth16 JSDescription for verifyjoinsplit benchmark 2018-05-14 16:29:02 -06:00
Sean Bowe 34f6ea95dc Adjust tests and benchmarks 2018-05-14 16:29:02 -06:00
Sean Bowe b7a6c32178 Integrate Groth16 verification and proving. 2018-05-14 16:26:23 -06:00
Alex English 72c5a7d56f Added ability to invoke src/fiat/verus from any cwd. Added executable permission. 2018-05-14 06:58:14 -07:00
jl777 163c740bf9 Merge pull request #665 from jl777/jl777
Jl777
2018-05-14 16:54:48 +03:00
jl777 39c15c681f -GAME for now 2018-05-14 16:53:59 +03:00
Alex English 498542f60a Recommitting fb9ad7b0daa32072a9ef555b8dabf71e501388f2 from Sun May 13 23:34:34 2018 -0700 by MikeTout because I accidentally blew it away fixing a bad merge. 2018-05-14 06:52:57 -07:00
Michael Toutonghi 1f722359c1 Verus Proof of Stake Compete with Additional ant-fork protection on block 1 2018-05-13 18:59:06 -07:00
ca333 c7f4af03c7 Merge pull request #35 from jl777/dev
update dev
2018-05-13 13:54:45 +02:00
pbca26 a7322d7720 rename zcash to komodo in cli examples 2018-05-12 12:51:39 +03:00
Jack Grigg e5eab182b5 Use boost::variant to represent shielded addresses and keys
libzcash::PaymentAddress has been renamed to libzcash::SproutPaymentAddress,
and a new typedef boost::variant is now libzcash::PaymentAddress. Similarly
for ViewingKey and SpendingKey.

A new class InvalidEncoding is introduced as the default boost::variant
option for each address and key type; it is used during decoding instead
of boost::optional.

All address and key storage functions in the wallet have been modified to
refer specifically to the Sprout types, as they are used very precisely.
In most other cases, the more general type is leveraged as much as possible,
and we convert to the Sprout type when necessary. This will be subsequently
wrapped in, or replaced with, context-specific functions once Sapling
types are implemented.
2018-05-11 17:14:49 -04:00
Homu 1942f7a42b Auto merge of #3242 - str4d:3058-key-encoding-refactor, r=str4d
Key encoding refactor

Includes code cherry-picked from the following upstream PRs:

- bitcoin/bitcoin#11372
  - Only the first three commits (the fourth commit depends on #2390)

Part of #3058.
2018-05-11 12:21:29 -07:00
jl777 09511571af Test 2018-05-11 16:36:21 +03:00
jl777 316a563c50 Test 2018-05-11 16:34:25 +03:00
jl777 ae3f3fea6c +GAME sanitize listunspent interest calc 2018-05-11 16:28:52 +03:00
jl777 581d2c416e Merge pull request #663 from lukechilds/patch-4
Remove VOTE2018 from `dpowassets`
2018-05-11 09:51:49 +03:00
Luke Childs 7be54a7fa3 Remove VOTE2018 from dpowassets 2018-05-11 11:59:49 +07:00
Luke Childs 87ae917277 Remove vote2018 from fiat-cli 2018-05-11 11:38:31 +07:00
Jonathan "Duke" Leto 30bf78ca23 Clarify help that signmessage only works on taddrs 2018-05-10 17:25:13 -07:00
Homu ae6c2587d3 Auto merge of #3232 - ebfull:3207-sapling-validation, r=str4d
Sapling validation

**Also review https://github.com/zcash/librustzcash/pull/7**

This is an attempt to tackle much of https://github.com/zcash/zcash/issues/3065
2018-05-10 10:21:15 -07:00
Homu 73f5cb1213 Auto merge of #3257 - bitcartel:3250_fix_segfault_memo, r=ebfull
Closes #3250. Memo getter should return by reference, not by value.
2018-05-10 08:47:06 -07:00