alex.sharov
e6b33b376f
make ci happy
2019-12-16 20:55:10 +06:00
alex.sharov
3b0c383a90
make linter happy
2019-12-16 20:55:10 +06:00
alex.sharov
5c3551910c
allocate channel for reconnections
2019-12-16 20:55:10 +06:00
alex.sharov
88b05bd162
make linter happy
2019-12-16 20:54:30 +06:00
alex.sharov
4fa90b9856
make linter happy
2019-12-16 20:27:49 +06:00
alex.sharov
bc8b28f71b
implement response code for SeekTo
2019-12-13 09:56:30 +06:00
alex.sharov
73b50e080d
debug_StorageRangeAt v0, got wrong response on request: {"jsonrpc":"2.0","method":"debug_storageRangeAt","params":["0x2bf07c790737be3bc4c57cbf3dedb231806f6bfef434657d59dcc9ddbe4665ab", 1,"0x8b3b3b624c3c0397d3da8fd861512393d51dcbac","0xfade75560a6cfb895f5dc7c4ab3fa10089ac2372c98aa78280d029ab36285ad6",1024],"id":1377}
2019-12-13 09:56:30 +06:00
alex.sharov
d413ae5935
remove concept of lastError
2019-12-12 21:26:23 +06:00
alex.sharov
24c743587d
remove concept of lastError
2019-12-12 21:26:23 +06:00
alex.sharov
c72b2977c2
limit parallel connections on server, move batchSize into cursor - maybe will add method cursor.SetBatchSize()
2019-12-09 21:34:47 +07:00
alex.sharov
71dc098968
include to report` only blocks on chain with highest difficulty
2019-12-09 21:34:47 +07:00
alex.sharov
005d715545
move gasLimits to remote db
2019-12-09 21:34:47 +07:00
alex.sharov
649d995a48
rename internal funcs
2019-12-06 08:12:02 +07:00
alex.sharov
bb2f7080ce
Moved connection to .View method. Not very optimal, but it allow cancel connection from client side or configure timeout, also in future it will allow us make connection pool there (maybe don't need).
2019-12-06 08:12:02 +07:00
alex.sharov
53b19b7c47
idiomatic for loops
2019-12-06 08:12:02 +07:00
alex.sharov
6c00ef2b04
idiomatic for loops
2019-12-06 08:12:02 +07:00
alex.sharov
412c30c9ff
fix lint
2019-12-06 08:12:02 +07:00
alex.sharov
8b69c54936
move context to from .NewDb to .View method
2019-12-06 08:12:02 +07:00
alex.sharov
ada5d88be8
fix linter warnings
2019-12-06 08:12:02 +07:00
alex.sharov
344b8029cc
handle interruption signals, added context for client and server. Only problem that it's context to DB, but not to each server call - it means you can't use HTTP Request context here (or create new connection on each request).
2019-12-06 08:12:02 +07:00
alex.sharov
80ea8a38ad
test for CmdCursorFirst
2019-12-06 08:12:02 +07:00
alex.sharov
49a614eae8
Bug fixes:
...
- rollback must catch local variable, if you write value to lastError variable
- then you can't do "return" - because it closing connection and client can't send CmdLastError
- somewhere error values was ommited in loging
2019-12-06 08:12:02 +07:00
alex.sharov
1ffbb97752
removed unnecessary allocations, add tcp context
2019-12-06 08:12:02 +07:00
alex.sharov
d8f93ae187
Batch cursor.First and cursor.Next for remote db.
2019-12-06 08:12:02 +07:00
ledgerwatch
8cb96471a3
Skeleton of RPC daemon, for 1 operation eth_blockNumber ( #209 )
...
* Finish CmdSeek and add CmdNext
* Add remoteDb listener and RPC daemon CLI
* Fix test
* Fix CLI
* Fix lint
* Fix unreachable code
* Fix lint
* First working RPC command eth_blockNumber
* Fix lint
* Fix lint
* Fix memprofile/cpuprofile confusion
* Add comment
2019-12-02 13:47:00 +00:00
ledgerwatch
b9b4904e8d
First steps for RPC deamon (remote DB access) ( #199 )
...
* Remote DB initial commit
* Fix lint
* Fix lint
* Fix lint
2019-11-25 13:39:32 +00:00