Commit graph

18 commits

Author SHA1 Message Date
Anthony Fieroni
857d03cc5d Fix merkle hash on empty trie past hash fork
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-03-26 15:40:44 +02:00
Brannon King
ea5a7c8152 optimized hash calc, fixed bad nChainTx, re-used db connection 2020-03-26 15:40:44 +02:00
Brannon King
40042cf1a7 track original height (not working) 2020-03-26 15:40:28 +02:00
Anthony Fieroni
eac4f02348 Fix rebase issues
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-03-26 15:40:28 +02:00
Anthony Fieroni
e904a9fce6 Use faster continuous memory hash computation
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-03-26 15:40:28 +02:00
Anthony Fieroni
d896099593 Remove duplicate code
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-03-26 15:40:28 +02:00
Brannon King
394f1d6088 repaired getchangesinblock 2020-03-26 15:40:28 +02:00
Brannon King
f85a276446 renamed tables to be singular 2020-03-26 15:40:28 +02:00
Anthony Fieroni
f8f209d51a Strip out takeover workaround in its own file
Trying to optimize a bit hash computation

Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-03-26 15:40:27 +02:00
Anthony Fieroni
cc32e2949c Address performance issue
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-03-26 15:40:27 +02:00
Brannon King
d942ffa1f2 handle takeover going back to zero 2020-03-26 15:40:27 +02:00
Anthony Fieroni
5e3dbb40cc Initial undo removal
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-03-26 15:40:27 +02:00
Anthony Fieroni
3bc4e6f9f0 Fix db directory
Don't use recursive hash computation

Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-03-26 15:40:27 +02:00
Anthony Fieroni
a50bc97e83 Fix getchangesinblock and unit test
getTotalValueOfClaimsInTrie query is not well performance balanced

Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-03-26 15:40:27 +02:00
Anthony Fieroni
a9104e8cc6 Fix removing expired claim
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-03-26 15:40:27 +02:00
Anthony Fieroni
17a4ded0ca Implement handlers for references and callbacks
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-03-26 15:40:27 +02:00
Anthony Fieroni
c0a0263058 Make claimtrie dynamic link library
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-03-26 15:40:27 +02:00
Anthony Fieroni
33a3d2cea3 Introduce libclaimtrie
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-03-26 15:40:27 +02:00
Renamed from src/claimtrieforks.cpp (Browse further)