Commit d4dcd41
Changed LiteDB to v4 for stability. (#242)
* Changed LiteDB to v4 for stability.
* Fixed the grouping for the wallet account and history
* Generate test data
* Regenerated test data for wallet with funds.
* Updated with transactions in wallet with funds.
* Update launchSettings.json
* Add fix to handle downgrade of databases
- Rename the database file name for addressindexer. This means users must manually delete the old file to clear up disk space.
- Attempt to read the wallet database and if it fails, attempt to rename it away and try again (only one time).
* Remove the zero check
- The "affectedAddresses" query fails and must be updated to work properly with LiteDB V4.
* Fix issue with query against LiteDB
- This fixes a crash that occured due to LINQ resulting in an invalid query against V4 of LiteDB. Reverted back to old syntax.
* Merge some old code into AddressIndexer
* Restore the Address, HotAddress and ColdAddress support
* Improve the purge performance
- Improves the purge performance greatly by using query to perform a bulk delete.
Co-authored-by: dangershony <dan.gershony@gmail.com>
Co-authored-by: SondreB <sondre@outlook.com>1 parent f6bcf76 commit d4dcd41
26 files changed
Lines changed: 166 additions & 119 deletions
File tree
- src
- Blockcore
- Features
- Blockcore.Features.BlockStore/AddressIndexing
- Blockcore.Features.Wallet/Database
- Node/Blockcore.Node/Properties
- Tests
- Blockcore.Features.BlockStore.Tests
- Blockcore.IntegrationTests.Common/ReadyData
- Blockcore.IntegrationTests/Wallet/Data
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
88 | | - | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| |||
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
181 | | - | |
| 182 | + | |
| 183 | + | |
182 | 184 | | |
183 | 185 | | |
184 | 186 | | |
| |||
365 | 367 | | |
366 | 368 | | |
367 | 369 | | |
| 370 | + | |
368 | 371 | | |
| 372 | + | |
369 | 373 | | |
370 | 374 | | |
371 | 375 | | |
| |||
508 | 512 | | |
509 | 513 | | |
510 | 514 | | |
| 515 | + | |
511 | 516 | | |
| 517 | + | |
512 | 518 | | |
513 | 519 | | |
514 | 520 | | |
| |||
Lines changed: 27 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
| 73 | + | |
70 | 74 | | |
| 75 | + | |
71 | 76 | | |
72 | 77 | | |
73 | 78 | | |
| |||
93 | 98 | | |
94 | 99 | | |
95 | 100 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
100 | 104 | | |
101 | | - | |
102 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
103 | 108 | | |
104 | 109 | | |
105 | 110 | | |
106 | 111 | | |
107 | 112 | | |
108 | 113 | | |
109 | 114 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
| 115 | + | |
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 122 | + | |
| 123 | + | |
127 | 124 | | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
| 125 | + | |
132 | 126 | | |
133 | 127 | | |
134 | 128 | | |
135 | 129 | | |
136 | 130 | | |
137 | 131 | | |
138 | | - | |
139 | | - | |
140 | | - | |
| 132 | + | |
141 | 133 | | |
142 | | - | |
| 134 | + | |
143 | 135 | | |
144 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
145 | 140 | | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
| 141 | + | |
152 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
153 | 146 | | |
154 | 147 | | |
155 | 148 | | |
| |||
0 commit comments