Brannon King
19300d269e
remove leveldb, made tests pass
...
error on Ctrl+C during reindex
2020-01-15 14:39:48 -07:00
Anthony Fieroni
bbac31675f
Strip out takeover workaround in its own file
...
Trying to optimize a bit hash computation
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-01-15 14:39:48 -07:00
Anthony Fieroni
7c4abad4f0
Address performance issue
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-01-15 14:39:48 -07:00
Brannon King
0f27f3cfd6
minor optimization tweaks, fixed one validHeight use
2020-01-15 14:39:48 -07:00
Brannon King
8b4197570d
all tests pass
2020-01-15 14:39:48 -07:00
Brannon King
5e32ef1b75
handle takeover going back to zero
2020-01-15 14:39:48 -07:00
Anthony Fieroni
0fce479923
Initial undo removal
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-01-15 14:39:48 -07:00
Anthony Fieroni
106a4c26da
Fix db directory
...
Don't use recursive hash computation
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-01-15 14:39:48 -07:00
Anthony Fieroni
0dad6a7c10
Fix getchangesinblock and unit test
...
getTotalValueOfClaimsInTrie query is not well performance balanced
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-01-15 14:39:48 -07:00
Anthony Fieroni
f47826232f
Fix removing expired claim
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-01-15 14:39:48 -07:00
Anthony Fieroni
02091d564b
Fix claimtriecache test
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-01-15 14:39:48 -07:00
Anthony Fieroni
0bc44cac0e
Ensure working directories are created
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-01-15 14:39:48 -07:00
Anthony Fieroni
3e51253853
Do not pass bool as int
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-01-15 14:39:48 -07:00
Anthony Fieroni
21b1ae4a63
Fix python unit test
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-01-15 14:39:48 -07:00
Anthony Fieroni
3b5fae6cfb
Fix sleep
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-01-15 14:39:48 -07:00
Anthony Fieroni
017ad1317a
Implement handlers for references and callbacks
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-01-15 14:39:48 -07:00
Anthony Fieroni
6d0b8e8196
Working python bindings
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-01-15 14:39:48 -07:00
Anthony Fieroni
e386039392
Simplifications
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-01-15 14:39:48 -07:00
Anthony Fieroni
c6334a5ef2
Make claimtrie dynamic link library
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-01-15 14:39:48 -07:00
Anthony Fieroni
53a61258e1
Introduce libclaimtrie
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-01-15 14:39:48 -07:00
Brannon King
c725cd46cf
error w/o segwit after fork
2020-01-15 14:39:48 -07:00
Brannon King
b57aca5a93
ensure we don't return witness data in the transaction w/o segwit rule
2020-01-15 14:39:48 -07:00
Brannon King
15e103b42f
performance tweaks, unit test fixes
2020-01-15 14:39:48 -07:00
Anthony Fieroni
1a67d18df4
Sync to top
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-01-15 14:39:48 -07:00
Brannon King
ce31ca87a0
goes through block 664641
2020-01-15 14:39:48 -07:00
Brannon King
37bf897f75
runs to norm fork
2020-01-15 14:39:48 -07:00
Anthony Fieroni
223141752e
Keep going to 536149
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2020-01-15 14:39:48 -07:00
Brannon King
75c4c7ab0d
fixed issue with untouched child nodes needing a parent update
2020-01-15 14:39:48 -07:00
Brannon King
dfc5ebf3f6
It passes 200k
2020-01-15 14:39:48 -07:00
Brannon King
5f8b0b6f55
fixed some RPC tests
2020-01-15 14:39:48 -07:00
Brannon King
6b22f66325
cache and hash fork tests pass
2020-01-15 14:39:48 -07:00
Brannon King
24a1c59013
tried to fix hashfork tests; they're not working yet
2020-01-15 14:39:48 -07:00
Brannon King
8affc8fe7d
normalization tests pass
2020-01-15 14:39:48 -07:00
Brannon King
8654a4554e
continued work on the takeover height
2020-01-15 14:39:48 -07:00
Brannon King
515446fe7b
some progress on making takeover height work
2020-01-15 14:39:48 -07:00
Brannon King
377432a459
fixed more tests
2020-01-15 14:39:48 -07:00
Brannon King
e96c393c34
still fixing tests
2020-01-15 14:39:48 -07:00
Brannon King
86ae72abb2
made another test pass, cleaned up cruft
2020-01-15 14:39:48 -07:00
Brannon King
c2d2e4befd
first tests ran, working to make takeover height unnecessary
2020-01-15 14:39:48 -07:00
Brannon King
3e16229318
it compiles
2020-01-15 14:39:48 -07:00
Brannon King
be118de19a
raised default max tx fee
2019-11-26 15:16:59 -07:00
Brannon King
bf8cb69987
worked around an off-by-1 issue on the normalization fork block
2019-11-26 15:16:59 -07:00
Brannon King
37d177178f
changed flush to have min height
...
don't flush blocks on regtest
2019-11-26 15:16:59 -07:00
gahag
f05b5973ae
Implement basic log rotation ( closes #211 ) ( #344 )
...
* Remove shrinkdebugfile flag (#211 )
To implement a basic form of log rotation, two instances of the log file are to
be adopted: one for the current execution, and one for the previous
execution. On startup, if the log file exists, it will be renamed into the old
log file. This implies the deprecation and removal of the log shrink flag, since
the log is no longer forever growing.
* Implement log backup
To implement a basic form of log rotation, two instances of the log file are to
be adopted: one for the current execution, and one for the previous
execution. On startup, if the log file exists, it is renamed into the old
log file. This means that you should always have logs for the last 2 executions.
closes #211
2019-10-29 14:21:04 -06:00
GwanYeong Kim
6fe70b58ce
Fix 'Use $(...) notation instead of legacy backticked ...
.' issue in shell script
2019-10-29 14:05:48 -06:00
Brannon King
76e3d8861c
error w/o segwit after fork
2019-10-11 14:16:38 -06:00
Brannon King
1bbedef565
ensure we don't return witness data in the transaction w/o segwit rule
2019-10-09 21:53:07 -06:00
Brannon King
9dee2eee5f
windows compilation fix round 2
2019-09-30 13:58:11 -06:00
Brannon King
785471745c
fixed compilation on Windows
2019-09-30 13:22:10 -06:00
Brannon King
7afebb02f4
Use memory mapped file for claim data allocations
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
match previous serialization
tweaks
added check for RC's data
2019-09-30 12:21:55 -06:00
Brannon King
8932d90a9e
rolled version, added info to chaintips
2019-09-27 09:26:26 -06:00
Brannon King
96fdb05689
added helper method, enabled signing
2019-09-26 12:29:40 -06:00
Brannon King
9149e371ed
fixed fee calc issue, removed segwit enable fallback
2019-09-25 13:42:34 -06:00
Anthony Fieroni
12ab16f50e
Show bid and sequence as optional parameters
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2019-09-19 10:59:15 -06:00
Anthony Fieroni
c185b49ede
Show claimtrie help in cli rpc
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2019-09-19 10:59:15 -06:00
Brannon King
d05eee35e8
updated go-live heights
2019-09-18 13:53:07 -06:00
lbrynaut
4df4136c5d
Fix unit tests after recent breaks.
2019-09-17 09:46:44 -06:00
Brannon King
b7cdd9f2a0
added staked totals to getwalletinfo
2019-09-16 16:04:57 -06:00
Brannon King
ffe828b1d9
rolled version, fix txindex_test, other tweaks
2019-09-16 14:54:05 -06:00
Brannon King
71bd612c4a
Fix broken test on previous checkin
2019-09-16 14:49:35 -06:00
Brannon King
f176db058e
change rpc enablement mechanism
2019-09-13 16:18:36 -06:00
Brannon King
b434864f18
initial commit of metadata on supports
2019-09-13 16:18:36 -06:00
Brannon King
4da4ab1995
restored nonstandard output on getrawtransaction
...
attempting to make index pointer problems more obvious
reverted strip in Solver
synced subtype
2019-09-13 16:16:08 -06:00
Brannon King
920a9b09dc
proposed fix for issue 242
2019-09-13 16:16:08 -06:00
Brannon King
8b98a9a4e9
Organize unit tests by type
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
moved a few more tests out
2019-09-11 09:21:45 -06:00
Anthony Fieroni
476eae3e93
Match network id to regtest
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2019-09-10 11:54:04 -06:00
Anthony Fieroni
6575fb9534
Show correct script ops in asm
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2019-09-10 10:02:16 -06:00
Brannon King
1583082acc
added support for tips in RPC, minor cleanup
2019-09-06 14:03:38 -06:00
Anthony Fieroni
f71d6a4263
Introduce pending amount, the value when claim and its supports got valid
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2019-09-06 14:03:38 -06:00
Anthony Fieroni
d2b78a7fc3
Make optional claimid and amount in supportclaim
...
Return destination claim address as well
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2019-09-06 14:03:38 -06:00
Anthony Fieroni
a98288aa80
Logic fixes, unit test
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2019-09-06 14:03:38 -06:00
Anthony Fieroni
3a0b4232a5
Add bid, sequence like rpc methods
...
Reuse a bunch of rpc help texts
2019-09-06 14:03:38 -06:00
Anthony Fieroni
5bdbc9e0d6
Split help and rpc methods
...
Use constants for field names
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2019-09-06 14:03:38 -06:00
Anthony Fieroni
9d4ef899a6
Unify claimtrie rpc methods
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2019-09-06 14:03:38 -06:00
Brannon King
d0e8374636
more thoroughly tested tx signing
2019-09-05 14:17:22 -06:00
Brannon King
d2b26da3e8
added parameter for claim db cache size
2019-08-30 15:19:09 -06:00
Brannon King
59faea9815
added unit test for signing claims
2019-08-30 13:54:19 -06:00
Brannon King
ce6be620a5
setting go-live heights
2019-08-30 13:52:32 -06:00
Anthony Fieroni
580f6e20eb
Implement binary tree hash algorithm
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2019-08-30 13:52:32 -06:00
Brannon King
7d93edf776
fix osx unit test failure
2019-08-30 09:22:58 -06:00
Brannon King
b3c5b1e88d
simplified claim stripping, removed TX_CLAIM
2019-08-29 14:49:54 -06:00
Brannon King
a84c196916
reduced max open files on levelDB
2019-08-29 08:57:45 -06:00
Brannon King
b52f47f273
removed shared_ptr on TData, set minWork
2019-08-29 08:57:45 -06:00
Anthony Fieroni
e9d37a8c81
Trying to minimize disk reads / writes
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2019-08-29 08:57:45 -06:00
Brannon King
d96253cd40
attempted optimization of dbwrapper
...
it will only work for single-threaded access
2019-08-29 08:57:45 -06:00
Brannon King
4a5d310fd3
separate claim from children storage
2019-08-29 08:57:45 -06:00
Brannon King
c6e267e970
optimized a little
2019-08-29 08:57:45 -06:00
Brannon King
7b5ae24bea
first pass at not loading full claimtrie into RAM
...
tweaks
2019-08-29 08:57:45 -06:00
lbrynaut
92037d786a
Detect "claim" type transactions.
...
Add code to enable a hardfork into witness support, in addition to
possible BIP9 fiddling.
Fix a bug in abandonclaim and abandonsupport that burns coins on
abandon, rather than sending to the intended destination.
2019-08-28 13:35:04 -06:00
Brannon King
fc0da99894
updated to support using bech32 addresses with claim ops
2019-08-28 13:35:04 -06:00
Brannon King
20e96d1233
fix unit test crash on OSX
...
pulled in some fixes from v18
2019-08-08 10:11:09 -06:00
Brannon King
43214bc6d2
removed superfluous fRequireTakeoverHeights
2019-07-29 10:25:41 -06:00
Brannon King
328ee12e8b
made a new "claims" logging category (off by default)
2019-07-29 09:47:33 -06:00
Brannon King
6259378466
renamed some of the cache fields
2019-07-29 09:23:56 -06:00
Anthony Fieroni
e5c8b6b8ff
Better use copies on iterate claim and support re-add
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2019-07-29 09:23:56 -06:00
Anthony Fieroni
c02b04f120
A bit more cleanup
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2019-07-29 09:23:56 -06:00
Anthony Fieroni
216cc51825
Code refactor
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2019-07-29 09:23:56 -06:00
Brannon King
b1aa5e04e1
revert regtest expiration change
2019-07-22 14:27:24 -06:00
Anthony Fieroni
0947307e14
Fix consensus
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2019-07-22 14:27:24 -06:00
Anthony Fieroni
966e7386d9
Fix expiration fork usage
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2019-07-22 14:27:24 -06:00