Roman Khimov
388fed06e5
transaction: forbid serializing invalid transactions
...
Transaction that has no data is invalid and can't be serialized, so throw an
error if someone tries to.
2020-02-03 16:33:03 +03:00
Evgenii Stratonikov
489b88afbb
block: rename BlockBase to Base
2020-01-16 10:16:24 +03:00
Evgenii Stratonikov
63c56cca5c
core: refactor out Block, BlockBase and Header structs
...
See #597 .
2020-01-16 10:16:24 +03:00
Roman Khimov
a9401e2ec7
core: do not write new dao elements into DB
...
It's useless work being done before it's actually needed. These (updated with
new values) are going to be written with some kind of Put anyway, so writing
them here is just a waste of time.
2019-12-13 19:57:17 +03:00
Roman Khimov
31dbc35279
core: gofmt dao_test.go
2019-12-12 21:05:36 +03:00
Roman Khimov
c5ed3b788b
core: simplify dao creation with newDao()
2019-12-12 21:04:55 +03:00
Vsevolod Brekelov
c1f39d5c7b
internal: moved testutil method to internal package
2019-12-11 13:14:43 +03:00
Vsevolod Brekelov
2d42b14a1d
core: renames entities-> state and removed State prefix
2019-12-11 13:14:18 +03:00
Vsevolod Brekelov
8809fe437d
core: unit tests for dao
2019-12-11 13:13:51 +03:00