-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor the wallet server/hub database use only leveldb (drop sqlite) and safely handle reorgs #3205
Merged
Merged
Refactor the wallet server/hub database use only leveldb (drop sqlite) and safely handle reorgs #3205
Changes from all commits
Commits
Show all changes
206 commits
Select commit
Hold shift + click to select a range
23035b9
Merkle staticmethods
jackrobison cf5dba9
combine leveldb databases
jackrobison 9f224a9
atomic flush_dbs
jackrobison 62cc6df
consolidate leveldb block advance/reorg
jackrobison 4258cef
remove lbry.wallet.server.history
jackrobison ccac4ff
consolidate flush_backup
jackrobison 2c8ceb1
named tuples
jackrobison 6988a47
disable sqlite in block processor
jackrobison 28c603a
transaction_num_mapping
jackrobison 588edf9
claims db
jackrobison 923834c
get_claim_by_claim_id
jackrobison c681041
claim expiration
jackrobison b7df277
db state struct
jackrobison 04bb7b4
add wrapper for getnamesintrie
jackrobison bfeeacb
tests
jackrobison cacbe30
rebase
jackrobison 6d4c1cd
LBRYBlockProcessor -> BlockProcessor
jackrobison 103bdc1
dead code
jackrobison aa3b18f
advance_blocks -> advance_block
jackrobison 9a11ac0
claim activations and takeovers (WIP)
jackrobison 4aa4e35
tests
jackrobison f290753
move get_expiration_height and claimtrie constants to Coin class
jackrobison 586b196
claim takeovers
jackrobison d27c2cc
remove unused COIN file
jackrobison e77f998
DBError
jackrobison efb92ea
fix udp ping test
jackrobison b69faf6
bid ordered resolve (WIP)
jackrobison 0a28d21
comments
jackrobison 410d4ae
fix takeover edge case
jackrobison 3eb9d23
require previous_winning arg for get_takeover_name_ops
jackrobison 77cde41
test_early_takeover_abandoned_controlling_support
jackrobison 62a4f0f
fix early takeovers by not-yet activated claims
jackrobison 407cd8d
fix duplicate update op for early activating claim
jackrobison 6f5bca0
bid ordered resolve, feed ES claim data from block processor
jackrobison eb1ba14
fix updating the ES search index
jackrobison 2abc67c
reposts
jackrobison 338488f
tests
jackrobison e605c14
flush count
jackrobison f493f13
prints
jackrobison ffff3bd
debugging
jackrobison 515f270
faster get_future_activated
jackrobison 27be5de
ignore activation for headless supports
jackrobison ce8e659
fix syncing claim to es where channel is in the same block
jackrobison 7896e17
fix putting spent unactivated supports in removed_active_support
jackrobison 1bdaddb
fix clearing pending_support caches upon abandon
jackrobison 1b325b9
fix flush id
jackrobison 8a555ec
remove extra open functions
jackrobison 18b5f03
filter supported claim hashes for claims that dont exist from early t…
jackrobison ce031dc
only do early takeover on a larger amount (fix case where they're equal)
jackrobison adb188e
filter abandoned claims from those considered for early activation
jackrobison 07c8650
refactor ClaimToTXO prefix
jackrobison 962dc1b
debug
jackrobison 4a1b2be
leveldb tuning
jackrobison 9f3604d
debug
jackrobison 1b94dfd
fix removing unactivated support
jackrobison 9cbb19c
_cached_get_active_amount
jackrobison 8bea109
disable es (revert)
jackrobison 42d07fd
fix
jackrobison a2619f8
genesis_bytes attribute
jackrobison d0d6e35
use default sync=False during write_batch
jackrobison 7c34e4b
logging
jackrobison 65700e7
_prepare_claim_for_sync generators
jackrobison d6758fd
invalidate channel signatures upon channel abandon
jackrobison 3450275
update elastic sync
jackrobison 458f853
try default block size
jackrobison 7688293
close db in sync script
jackrobison 218be22
imports
jackrobison ba4f320
faster claim producer
jackrobison 8b37a66
fix fee amount overflow in es
jackrobison 4d35737
add RevertableOpStack to verify consistency of ops as they're staged
jackrobison d119fcf
remove debug prints
jackrobison 1dc961d
use RevertableOpStack in _get_takeover_ops
jackrobison ed652c0
fix updating resolve by effective amount after abandoning support
jackrobison bb2a34d
fix duplicate activate
jackrobison bfb9d69
pretty print
jackrobison 2ee419f
fix
jackrobison cf66c2a
rename things
jackrobison 0c30838
fix mismatch in claim_to_txo<->txo_to_claim
jackrobison 814699e
cleanup
jackrobison 52ff1a1
fix undeleted claim_to_channel record
jackrobison 821be29
rename effective_amount prefix
jackrobison dc2f22f
cleanup
jackrobison 3b96bd7
fix
jackrobison 290be69
typing
jackrobison a8f2036
fix RepostKey
jackrobison 310c483
missing channel_to_claim delete
jackrobison f8eceb4
update staged txo_to_claim after invalidating channel sig
jackrobison 6416ee8
typing and fix error string
jackrobison 8bcfff0
update channel_to_claim and claim_to_channel at the same time
jackrobison e5c22fa
fix has_no_source for reposts
jackrobison 229cb85
extra deletes
jackrobison c68f9f6
fix signed claim invalidation corner cases
jackrobison 615e489
fix `stream_update` --clear_channel flag
jackrobison c91a47f
improve channel invalidation test
jackrobison b9c2ee7
fix non localhost elasticsearch
jackrobison a84b9ee
fix es sync
jackrobison 68474e4
skip es sync during initial hub sync, halt the hub upon finishing ini…
jackrobison a1ddd76
cleanup
jackrobison 6f3342e
update plyvel to 1.3.0
jackrobison 677b8cb
add remaining db prefixes
jackrobison b344f17
update RevertableOpStack
jackrobison f94e6ac
update lookup_utxos
jackrobison 2bb55d6
update limited_history
jackrobison 3955b64
simplify advance and reorg
jackrobison 7de06aa
delete stale code
jackrobison 07e182a
rename
jackrobison 7a56eff
small fixes
jackrobison 496f89f
reorg claims in the search index
jackrobison a6ee8dc
fix touched hashXs notifications
jackrobison 292d272
combine MemPool and Notifications classes
jackrobison 1ac7831
move MemPool into BlockProcessor
jackrobison 8927a48
tests
jackrobison df5662d
fix resolve by short id
jackrobison ca57dcf
handle failure to generate a short id
jackrobison c26a99e
fix abandoning signed claims in the same tx as their channel
jackrobison c28aae9
fix expiring channels
jackrobison a35dfd1
faster es sync
jackrobison ac82617
fix spends in address histories
jackrobison e33e767
fix test
jackrobison c632a7a
fix getting block hash during reorg
jackrobison 077ca98
cleanup
jackrobison 813e506
threadpool
jackrobison 1a59128
faster get_future_activated
jackrobison 73ba381
faster spend_utxo
jackrobison 30b923b
rename extend_ops
jackrobison 5a01dbf
split flush from advance_block
jackrobison 4e4e899
fix spend_utxo
jackrobison 0fb6f05
in memory claim_to_txo and txo_to_claim dictionaries
jackrobison 25147d8
handle claims that dont exist in ES sync
jackrobison f8d2f02
clear claim_to_txo cache before reading
jackrobison 0273a4e
fix claim search by fee for claims without fees
jackrobison def2903
faster _cached_get_active_amount for claims
jackrobison f944671
use claim_to_txo cache
jackrobison 180ba27
run advance_block in threadpool
jackrobison f0a195a
faster es sync
jackrobison f7622f2
non blocking mempool loop
jackrobison 98bc7d1
remove dead code
jackrobison fb1a774
delete lbry/wallet/server/storage.py
jackrobison fab9c90
update iterators to use pack_partial_key
jackrobison ffbe59e
fix applying expiration fork
jackrobison b4d6c4f
fix _get_pending_claim_name
jackrobison d413742
implement blocking and filtering
shyba 09bb1ba
fix keeping claim_hash_to_txo and txo_to_claim in sync
jackrobison 8f9e7f7
handle invalid claim update
jackrobison 722b42a
fix tests
jackrobison af22646
fix tests
jackrobison 2d48e93
fix bulk es sync
jackrobison 54461df
fix merge conflicts and simplify extract_doc
jackrobison c51e344
fix missing fields in reposts
jackrobison 28aa7da
merge conflicts
jackrobison 59db5e7
update test
jackrobison 234c03d
fix claims not having non-normalized names
jackrobison 0c0e36b
trending
eggplantbren 3a1baf0
prefix db
jackrobison 54903fc
handle unicode error for unnormalized names
jackrobison 231eabb
fix non normalized canonical urls
jackrobison 388724f
Mark claims as touched
eggplantbren 53bd2bc
Put trending score into ES
eggplantbren 65c0668
constants
eggplantbren 34576e8
update trending in elasticsearch
jackrobison 1940301
skip integrity errors for trending spikes
jackrobison acaf299
log time to update and decay trending in elasticsearch
jackrobison db27899
make app backward compatible with `trending_score`
jackrobison 0ba7515
trending fixes
jackrobison 165f3bb
refactor trending
jackrobison 3a16edd
fix trending overflow
jackrobison 57028ea
add trending integration test
jackrobison 32f8c9e
renormalization
jackrobison 2138e7e
fix tests
jackrobison 58ad1f3
non blocking claim producer
jackrobison 701b39b
test_spec_example
jackrobison d23a0a8
delete unused code
jackrobison 9365708
fix release_time and creation_timestamp
jackrobison 1ff7b77
claim search fixes
jackrobison 6231861
merge conflicts
jackrobison a567326
fix all_claims_producer
jackrobison 1ee1a5f
fix es sync.py
jackrobison ece2d1e
`name` and `normalized` -> `claim_name` and `normalized_name`
jackrobison be6b72e
handle invalid release time
jackrobison b2f9ef2
use hub binary from https://github.com/lbryio/hub/pull/13
jackrobison 709f5e9
fix update that initiates takeover not being delayed
jackrobison 91a07cf
fix logging number of notified sessions
jackrobison aa50e6e
fix test
jackrobison 82fe2a4
fix blocking and filtering
shyba 37ec9ab
remove unused executor
jackrobison 72500f6
faster read_claim_txos
jackrobison 8c75098
fix filtering error upon abandon
jackrobison 6ec7019
refactor reload_blocking_filtering_streams
jackrobison 02cf478
improve leveldb caching
jackrobison 18e1256
batch address history notifications
jackrobison 89cd6a9
add tests for takeovers from amount changes in updates before/on/afte…
jackrobison 86f21da
fix activating non existent claim
jackrobison 11dcb16
fix test
jackrobison 33e8ef7
fix bug with early takeover by an update
jackrobison 09db868
fix ES index name so it stays the same within a test case
jackrobison b198f79
fix test_sqlite_coin_chooser
jackrobison 01ee4b2
fix and add test for abandoning a controlling in the same block a new…
jackrobison 4cf7612
block processor db refactoring
jackrobison 8167af9
sort touched or deleted claim hashes
jackrobison 0939589
move test_claim_commands and test_resolve_command into new directory
jackrobison e03f01e
try to fix test_sqlite_coin_chooser
jackrobison a7c45da
fix channel count
jackrobison ccf03fc
only save undo info for blocks within reorg limit
jackrobison b2922d1
move test_transaction_commands, test_internal_transaction_api , and t…
jackrobison d64a5bc
fix test
jackrobison 43432a9
fix compactify script
jackrobison File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change will get overwritten when the error file is re-generated from the
lbry/error/README.md
.