Commit Graph

79 Commits

Author SHA1 Message Date
blackjok3r
0f6fe03990 fix 2019-05-06 12:08:53 +08:00
blackjok3r
25bf471ddd add notary pay stuff without breaking blockindex. 2019-04-17 18:36:00 +08:00
blackjok3r
ab7558ab9d inital commit for notarypay 0BR 2019-04-17 17:42:24 +08:00
blackjok3r
fa309e5b0e Add context flag to stop checking twice 2019-04-02 19:14:51 +08:00
jl777
e4791f54e6 Merge branch 'FSM' into patch-gcc-8 2019-01-25 16:33:13 -11:00
DeckerSU
a6e7da55e2 fix gcc-8 / g++-8 build 2019-01-26 03:09:54 +03:00
jl777
0f6ee83311 Tmp files 2019-01-24 01:44:20 -11:00
jl777
0ea9ae3c05 Update copyright to 2019 2018-12-31 21:41:05 -11:00
jl777
3491227494 Sprout funds 2018-12-15 15:03:24 -11:00
jl777
9412ec11a9 Add back Lwma guards for performance 2018-11-24 09:31:06 -11:00
jl777
89296c979c Fix lwmapos crash 2018-11-24 09:17:34 -11:00
jl777
bff0c90b85 Revert test 2018-11-22 05:52:50 -11:00
jl777
ff6593fc5c Test lwma 2018-11-22 05:48:04 -11:00
jl777
05eaa89826 ASSETCHAINS_LWMAPOS is int32_t 2018-11-22 02:17:27 -11:00
jl777
d7f29aacf8 uint32_t 2018-11-22 02:12:14 -11:00
jl777
f28f7c8324 ASSETCHAINS_LWMAPOS check in IsVerusPOSBlock() 2018-11-22 02:07:16 -11:00
miketout
4b729ec577 Changes for most chain power rule 2018-09-28 01:38:14 -07:00
miketout
9feb4b9e08 Major updates integration from all upstreams 2018-09-18 14:33:53 -07:00
Michael Toutonghi
0c8fa56a02 All latest updates, smart contracts, including oracle from KMD/jl777 2018-09-13 13:00:13 -07:00
jl777
efb8981cb9 Segid cache 2018-08-08 23:41:59 -11:00
Michael Toutonghi
5034d1c134 Sync with latest Komodo changes 2018-08-06 12:52:22 -07:00
jl777
8613127572 LastTip() and tweak deprecation heights 2018-07-15 22:47:16 -11:00
Michael Toutonghi
37ad688668 Protect from null ptr on chain tip 2018-07-14 21:45:38 -07:00
jl777
2618950955 Test 2018-07-12 00:52:36 -11:00
jl777
a46d6afb2b Test 2018-07-12 00:28:15 -11:00
jl777
7e282415b1 Coin supply api 2018-07-11 23:57:20 -11:00
jl777
d1db09204a Syntax 2018-07-11 02:58:41 -11:00
jl777
1cdb961ba2 Fix PoW mining in mixed PoS/PoW, fix orphaned stake tx 2018-07-11 02:51:42 -11:00
Michael Toutonghi
f6608b5a0d cleanup 2018-05-17 22:58:30 -07:00
Jack Grigg
ae97177c86 Track net value entering and exiting the Sapling circuit 2018-05-09 16:02:23 -04:00
Sean Bowe
1f8be05b63 Add consensus support for Sapling merkle trees. 2018-05-07 14:37:46 -06:00
Sean Bowe
e814be60fe Rename hashSproutAnchorEnd to hashFinalSproutRoot to be consistent. 2018-05-07 14:37:46 -06:00
Sean Bowe
f2c6d214e5 Rename hashSaplingAnchorEnd to hashFinalSaplingRoot to match spec. 2018-05-07 14:37:46 -06:00
Sean Bowe
30325eebf5 Add primitive implementation of GetSaplingAnchorEnd. 2018-05-07 13:46:06 -06:00
Sean Bowe
691a3fa2e9 Rename hashReserved to hashSaplingAnchorEnd. 2018-05-07 13:46:06 -06:00
Sean Bowe
08f0728884 Rename hashAnchor to hashSproutAnchor. 2018-05-07 13:46:06 -06:00
Jack Grigg
68a1a592ca Remove nType and nVersion from Zcash-specific code 2018-04-17 13:09:47 +01:00
Pieter Wuille
242f1421db Get rid of nType and nVersion
Remove the nType and nVersion as parameters to all serialization methods
and functions. There is only one place where it's read and has an impact
(in CAddress), and even there it does not impact any of the recursively
invoked serializers.

Instead, the few places that need nType or nVersion are changed to read
it directly from the stream object, through GetType() and GetVersion()
methods which are added to all stream classes.
2018-04-17 13:09:28 +01:00
jl777
b5ca03bca7 Test 2018-04-13 22:49:40 +03:00
jl777
f31232d8d0 Test 2018-04-13 22:45:26 +03:00
jl777
69c24cd06e Manual merge 2018-04-13 18:47:42 +03:00
jl777
065505b795 Test 2018-04-13 18:06:44 +03:00
jl777
faf51f1a7a Cache pubkey33 and notary 2018-03-26 04:23:57 +03:00
Jack Grigg
828940b163 Use a boost::optional for nCachedBranchId
This enables us to distinguish between it being unset vs. being set to zero.
2018-02-06 22:42:18 +00:00
Jack Grigg
9e851450ab Adjust rewind logic to use the network upgrade mechanism 2018-02-04 22:58:42 +00:00
Pieter Wuille
89f20450c2 Add rewind logic to deal with post-fork software updates
Includes logic for dealing with pruning by Suhas Daftuar.
2018-02-04 22:58:42 +00:00
Jack Grigg
e365ca1c53 Remove nSproutValue TODO from CDiskBlockIndex
Block indices are flushed to disk when they are marked as dirty, and this
happens via enough distinct pathways that it would be sufficiently complex to
update nSproutValue via all of them. Thus it is necessary to be able to
serialize "no value" for writes by upgraded clients.
2017-12-16 10:01:26 +00:00
Jack Grigg
9d0c70e9e7 Clarify operator precedence in serialization of nSproutValue 2017-12-15 18:36:05 +00:00
Jack Grigg
ad6a36ad02 Track net value entering and exiting the Sprout circuit
Delta values will be stored for new blocks; old blocks can be filled in by
re-indexing. The net value currently in the Sprout circuit is only calculated
when delta values for all previous blocks are present.
2017-12-14 22:06:11 +00:00
Wladimir J. van der Laan
0e2b1ae259 chain: define enum used as bit field as uint32_t
Bitwise logic combined with `<` with undefined signedness will
potentially results in undefined behavior. Fix this by defining the type
as a c++11 typed enum.

Fixes #6017.
2017-03-24 09:03:59 +13:00