neoneo-go/pkg/rpc
Roman Khimov 920d7c610c core: remove blockCache, use MemoryStore, redesign persist()
Commit 578ac414d4 was wrong in that it saved
only a part of the block, so depending on how you use blockchain, you may
still see that the block was not really processed properly. To really fix it
this commit introduces intermediate storage layer in form of memStore, which
actually is a MemoryStore that supports full Store API (thus easily fitting
into the existing code) and one extension that allows it to flush its data to
some other Store.

It also changes AddBlock() semantics in that it only accepts now successive
blocks, but when it does it guarantees that they're properly added into the
Blockchain and can be referred to in any way. Pending block queing is now
moved into the server (see 8c0c055ac657813fe3ed10257bce199e9527d5ed).

So the only thing done with persist() now is just a move from memStore to
Store which probably should've always been the case (notice also that
previously headers and some other metadata was written into the Store
bypassing caching/batching mechanism thus leading to some inefficiency).
2019-09-27 15:42:35 +03:00
..
result RCP server (#50) 2018-03-23 21:36:59 +01:00
wrappers io: drop Size() method from Serializable and associated 2019-09-17 13:21:45 +03:00
client.go *: add/fix godoc comments to satisfy golint 2019-09-03 17:57:51 +03:00
doc.go rpc: split README into developer and user parts 2019-09-18 12:10:12 +03:00
errors.go Fix #140 (improve error message) (#142) 2019-02-20 16:28:11 +00:00
neoScanBalanceGetter.go rpc: fix bad name spellings noted by golint 2019-09-03 18:16:48 +03:00
neoScanTypes.go *: add/fix godoc comments to satisfy golint 2019-09-03 17:57:51 +03:00
param.go RCP server (#50) 2018-03-23 21:36:59 +01:00
params.go Fix #140 (improve error message) (#142) 2019-02-20 16:28:11 +00:00
request.go [FIX] Formatting and code-style (#118) 2019-01-25 12:20:35 +01:00
rpc.go io: redo Serializable to return errors in BinReader/BinWriter 2019-09-17 13:21:52 +03:00
server.go io: redo Serializable to return errors in BinReader/BinWriter 2019-09-17 13:21:52 +03:00
server_helper_test.go core: make unpersisted blocks/txs available in Blockchain 2019-09-25 17:46:28 +03:00
server_test.go core: remove blockCache, use MemoryStore, redesign persist() 2019-09-27 15:42:35 +03:00
stack_param.go *: add/fix godoc comments to satisfy golint 2019-09-03 17:57:51 +03:00
stack_param_test.go uint256: add Reverse(), change String() to be BE 2019-08-26 13:32:19 +03:00
txBuilder.go io: redo Serializable to return errors in BinReader/BinWriter 2019-09-17 13:21:52 +03:00
txTypes.go *: gofmt -s 2019-09-09 12:02:24 +03:00
types.go rpc: fix bad name spellings noted by golint 2019-09-03 18:16:48 +03:00