Skip to content

Wallet moved to litedb #179

Merged
dangershony merged 35 commits intomasterfrom
wallet-litedb-part-trxdata
Jul 11, 2020
Merged

Wallet moved to litedb #179
dangershony merged 35 commits intomasterfrom
wallet-litedb-part-trxdata

Conversation

@dangershony
Copy link
Copy Markdown
Member

@dangershony dangershony commented Jul 5, 2020

Wallet db upgrade

This PR moves the wallets to use litedb instead of in memory json file.
The json file is still there but only holds derived addresses and is still named [walletname].wallet.json

Wallet db files go in the folder txdb format [walletname].db the folder can be deleted in order to resync the wallet.

Old wallet files are copied in to [walletname].wallet.json.backup files and are not touched.
To upgrade just start the node nothing else needs to be done, existing wallets will resync from genesis.

Copy link
Copy Markdown
Member

@sondreb sondreb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great PR, looking forwarding to testing it out on some large wallets! This will be a good benefit for large stakers/miners, and for exchanges/integrators/Point-of-Sale and other solutions. Good work!

Comment thread src/Blockcore/Broadcasters/BroadcasterBase.cs Outdated
Comment thread src/Features/Blockcore.Features.Wallet/Types/WalletStore.cs Outdated
Comment thread src/Features/Blockcore.Features.Wallet/Types/WalletStore.cs Outdated
Comment thread src/Features/Blockcore.Features.Wallet/Types/WalletStore.cs
Comment thread src/Features/Blockcore.Features.Wallet/Types/WalletStore.cs Outdated
Comment thread src/Features/Blockcore.Features.Wallet/Types/WalletStore.cs Outdated
Comment thread src/Tests/Blockcore.IntegrationTests/Blockcore.IntegrationTests.csproj Outdated
@thecrypt0hunter
Copy link
Copy Markdown
Contributor

Is it worth moving the old wallets to a backup or archive folder?

@dangershony
Copy link
Copy Markdown
Member Author

closes #180

@dangershony
Copy link
Copy Markdown
Member Author

#2

@dangershony dangershony merged commit b52aa03 into master Jul 11, 2020
@dangershony dangershony deleted the wallet-litedb-part-trxdata branch July 11, 2020 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants