Commit 422733a
refactor(state): remove DB writes from the new state to make writes atomic (#3360)
* squash
fix unit tests
cleanups
renames
unit tests
interface modifications
linter
linter
linter
* linter
* linter
* chore: remove last staticcheck, organise mocks
* squash
cleanups
Integrate common interfaces into rawdb
fixes after rebase
minor linter changes
clean-up blockchain.go, fix linter
minor cleanups
clean cache
fix unit tests
fixes after rebase
* squash
cleanups
Integrate common interfaces into rawdb
fixes after rebase
minor linter changes
clean-up blockchain.go, fix linter
minor cleanups
state atomicity
remove node ordering
fixes after rebase
* changes to the atomicity
* code style
* unit tests
* fix: minor fixes after rebase
* chore: address first batch of comments on the PR
* chore: fixes after rebase
* chore: remove empty state constructor
* chore: address the PR comments, use new felt constructors
* test: fix unit tests
* fix(core/state): compilation errors
* chore: address PR comments, fix unit tests
* test: improve code coverage
* chore: linter
* test: increase codecov
* chore: clean up unnecessary noise
---------
Co-authored-by: Rodrigo <rodrodpino@gmail.com>1 parent 0e84cab commit 422733a
17 files changed
Lines changed: 572 additions & 559 deletions
File tree
- core
- state
- statefactory
- trie2
- triedb
- database
- hashdb
- pathdb
- rawdb
- trienode
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
| 19 | + | |
| 20 | + | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | | - | |
26 | | - | |
| 24 | + | |
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
| 150 | + | |
149 | 151 | | |
150 | 152 | | |
151 | 153 | | |
| |||
159 | 161 | | |
160 | 162 | | |
161 | 163 | | |
162 | | - | |
| 164 | + | |
| 165 | + | |
163 | 166 | | |
164 | 167 | | |
165 | 168 | | |
| 169 | + | |
166 | 170 | | |
167 | 171 | | |
168 | 172 | | |
| |||
225 | 229 | | |
226 | 230 | | |
227 | 231 | | |
228 | | - | |
| 232 | + | |
| 233 | + | |
229 | 234 | | |
230 | 235 | | |
231 | 236 | | |
| |||
239 | 244 | | |
240 | 245 | | |
241 | 246 | | |
| 247 | + | |
242 | 248 | | |
243 | 249 | | |
244 | 250 | | |
245 | 251 | | |
246 | | - | |
| 252 | + | |
| 253 | + | |
247 | 254 | | |
248 | 255 | | |
249 | 256 | | |
| |||
257 | 264 | | |
258 | 265 | | |
259 | 266 | | |
| 267 | + | |
260 | 268 | | |
261 | 269 | | |
262 | 270 | | |
| |||
0 commit comments