Larry Ruane
3defdcd1ee
Improve error handling
2020-05-21 11:48:03 -06:00
Larry Ruane
f8794dbe05
update submitblocks.sh, return an error if GetBlock height is too low, instead of crashing
2020-05-21 11:48:03 -06:00
Larry Ruane
39348100a9
fix StageTransactions, vendor = ECC LightWalletD
2020-05-21 11:48:03 -06:00
Larry Ruane
391e886afc
better error handling, remove unused DarksideTx
2020-05-21 11:48:03 -06:00
Larry Ruane
7420d565a8
don't special-case darkside in SendTransaction, just use the mock rpc handler
2020-05-21 11:48:03 -06:00
Larry Ruane
3bada32bee
fixes on last commit, especially StageBlocksCreate
2020-05-21 11:48:03 -06:00
Larry Ruane
f1e793796f
implement staging, not well tested
2020-05-21 11:48:03 -06:00
Larry Ruane
52ac837370
New "staging" api (StageBlocks, StageTransactions, ApplyStaged)
...
Also remove the initial block load (all blocks will come from the
Staging APIs), but there is still more to do (this does not even
start up correctly) but darkside.proto is correct, we believe.
2020-05-21 11:48:03 -06:00
Larry Ruane
c8ee805933
remove Blockchaininfo json type assertions, no functional change
2020-05-21 11:48:03 -06:00
Larry Ruane
38d71a8f1d
don't sleep 1s for reorg, wait 2s for new blocks
2020-05-21 11:48:03 -06:00
Larry Ruane
d7e1005523
DarksideAddBlock(): remove generation of correct prevhash
2020-05-21 11:48:03 -06:00
Larry Ruane
9371f984ae
GetBlockRange: don't pass mutex in channel (linter warning)
2020-05-21 11:48:03 -06:00
Larry Ruane
22d5c97e7f
SetBlocksURL: replace curl with http client
2020-05-21 11:48:03 -06:00
Larry Ruane
d08d8980a8
add support for gRPC GetTransaction() (mined tx)
2020-05-21 11:48:03 -06:00
Larry Ruane
e3aca9bec7
review comment: 30-minute shutdown improvement
...
Safer to shutdown darksidewalletd directly after 30 minutes, instead
of waiting for a zcashd rpc to occur (darksideRawRequest());
also using a goroutine is simpler.
2020-05-21 11:48:03 -06:00
Larry Ruane
5e37f408e3
address review comments
2020-05-21 11:48:03 -06:00
Larry Ruane
86fd87404b
add darkside SetMetaState, SetBlocksURL for reorg testing
2020-05-21 11:48:03 -06:00
Aditya Kulkarni
7587af82ad
Configure params port
2020-05-19 20:43:07 -07:00
Aditya Kulkarni
7b73309821
Add latency logging
2020-05-17 22:51:51 -07:00
Aditya Kulkarni
df9242b153
Logging for params
2020-05-13 19:23:53 -07:00
Aditya Kulkarni
74c2196246
Add logging
2020-05-13 19:02:09 -07:00
Aditya Kulkarni
32ea32f06c
cleanup
2020-05-04 12:27:08 -07:00
Aditya Kulkarni
b13f65a9ab
Add params serving
2020-05-04 12:17:14 -07:00
Larry Ruane
f4d5d8e4b2
if corruption detected, save db files for analysis
2020-04-24 16:55:47 -06:00
Larry Ruane
c2a6306ce5
Misc cleanups and fixes
...
- improved corruption recovery (don't back up by just 1 block at a time)
- move darksidewallet gRPCs to their own .proto file
- this force-push removes my commits for reorg testing using SetState
2020-04-24 16:55:47 -06:00
Larry Ruane
8974cd1586
fix merge conflicts while rebasing onto file-cache branch
2020-04-24 16:55:47 -06:00
Taylor Hornby
673a9635fc
Run gofmt on server/main.go and common/darkside.go
2020-04-24 16:55:47 -06:00
Taylor Hornby
d55d9b1c64
Add tool for generating fake blockchains
2020-04-24 16:55:47 -06:00
Taylor Hornby
1a93b8d97c
Add darksidewalletd mode for reorg testing.
2020-04-24 16:55:47 -06:00
Larry Ruane
3873a4d895
mutex.Lock during c.recoverFromCorruption()
2020-04-23 00:25:14 -06:00
Aditya Kulkarni
b1d587b504
Split the ingestor so as to add historical blocks
2020-04-21 21:41:07 -07:00
Aditya Kulkarni
f5d3e8fa04
Add monitoring metrics
2020-04-21 20:58:17 -07:00
Aditya Kulkarni
5bb05258a1
Add prometheus metrics
2020-04-21 16:52:27 -07:00
Larry Ruane
1d11751e4e
update README
2020-04-13 22:22:44 -06:00
Ben Wilson
25afaeae5c
Added back logging interceptor for non-tls, fixed version on startup
2020-04-09 10:27:08 -06:00
Larry Ruane
1ff6ea4091
move block cache from memory to files
2020-04-08 18:10:50 -06:00
Ben Wilson
137e04acb6
Added additional build details
2020-04-03 14:02:18 -06:00
Larry Ruane
2fe2d9ac62
add automatic version string based on git-describe (tags)
2020-04-03 14:02:18 -06:00
Larry Ruane
e71de4d88f
rebase PR 175 - Use cobra and viper for configuration
2020-03-18 12:13:30 -06:00
Ben Wilson
dffb18cf0f
Example usage of cobra and viper for configuration
...
Remove extra configs
Move server startup to rootcmd
Fixed broken insecure flags and example config name
2020-03-18 08:56:29 -06:00
Larry Ruane
1dc439080b
add COPYING and copyright lines
2020-03-12 12:02:55 -06:00
Larry Ruane
a4f968823f
test improvements, and minor cleanups
2020-01-31 16:36:31 -07:00
Ben Wilson
76df81bc32
Use RSA instead
...
Just localhost
Fix fileexists logic
2020-01-02 10:00:40 -05:00
Larry Ruane
2b73689794
remove sqlite3, add block cache (adityapk00)
...
Co-authored-by: Aditya Kulkarni <adityapk@gmail.com>
2019-12-19 12:11:03 -07:00
Larry Ruane
f58a5f9376
add GetLightdInfo RPC
...
Co-authored-by: Aditya Kulkarni <adityapk@gmail.com>
also to pick up changes to walletrpc/service.proto
(regenerate compact_formats.pb.go service.pb.go)
cd walletrpc
protoc compact_formats.proto --go_out=plugins=grpc:.
protoc service.proto --go_out=plugins=grpc:.
ran go mod tidy && go mod vendor
2019-12-17 12:57:41 -07:00
Aditya Kulkarni
e68b202928
Display hash properly
2019-10-09 15:07:11 -07:00
Aditya Kulkarni
c688de510e
Store serialized bytes in cache
2019-10-01 11:05:43 -07:00
Aditya Kulkarni
de305ad0f0
Max reorg limit
2019-09-30 14:13:20 -07:00
Aditya Kulkarni
f8bec5fd2b
Handle reorgs > 10 blocks
2019-09-30 13:54:30 -07:00
Aditya Kulkarni
8e6259b258
Add cache invalidation for reorg'd blocks
2019-09-26 11:31:06 -07:00
Aditya Kulkarni
a8cc2424a2
Thread safe cache with separate ingestor
2019-09-25 21:15:32 -07:00
Aditya Kulkarni
fbb75e8f20
Return consensusBranchId
2019-09-25 17:46:05 -07:00
Aditya Kulkarni
6f56b8b8e9
Store compactBlocks
2019-09-25 17:18:27 -07:00
Aditya Kulkarni
d503752588
Block Cache
2019-09-25 15:55:37 -07:00
Aditya Kulkarni
80d6dab9f8
WIP cache
2019-09-25 14:54:15 -07:00
Aditya Kulkarni
d56fe7bf1a
Remove SQL from grpc server
2019-09-25 13:28:55 -07:00
Aditya Kulkarni
d59757571d
Remove UTXOs call
2019-09-25 11:43:54 -07:00
Aditya Kulkarni
3b4573c4f0
Add chainname and activation height to getinfo
2019-09-18 21:16:15 -07:00