Commit Graph

85 Commits

Author SHA1 Message Date
Emerson Hall e720feb3f3 Operators can specify a Zcash donation address 2025-03-06 14:48:59 -07:00
Daira-Emma Hopwood c83db0117b
Merge pull request #489 from LarryRuane/2024-07-zebrad-err-messages
zebrad instead of zcashd in error messages
2024-08-10 11:11:03 +01:00
Emerson Hall 033d54e0f8 Log that gRPC is listening only when it is listening 2024-07-17 11:47:13 -06:00
Larry Ruane 4492d60b31 zebrad instead of zcashd in error messages 2024-07-07 22:21:57 -06:00
Larry Ruane 6e3816b583 add --nocache option to disable compact block file cache
This fixes issue #480. Enabling this option decreases the performance of
gRPCs GetBlock and GetBlockRange, but conserves disk space (the size of
the database is currently around 17GB).

Note, specifying this option will also delete the existing cache (so if
you start again without --nocache, the cache will need to be recreated).
2024-06-27 13:24:57 -05:00
Larry Ruane ba1b931986 add --sync-from-height command-line option
This causes lightwalletd to discard cached blocks at the given height
and beyond. This in turn causes it to re-fetch those blocks from zcashd.
It's similar to --redownload, except that option discards all blocks
(equivalent to --sync-from-height 0, but the existing --redownload is
retained for compatibility).

This is mostly intended for testing. It's sometimes useful to force the
node to (re)sync some recent blocks, but redownloading all of them takes
around an hour.
2022-05-24 15:17:38 -05:00
Dimitris Apostolou 13de3232b3 Fix typos 2021-11-30 17:12:35 -07:00
Larry Ruane 6357f7f15b Refactor mock Sleep, add mock Now time function
Instead of the Sleep function pointer being a standalong global
variable, move it into a new Time struct, and add a Now function
pointer, so that time.Now() can be mocked. Time.Now() isn't used yet.
This will be cleaner if we need to mock more time-related functions in
the future.
2021-07-29 13:47:53 -06:00
Larry Ruane 503b9b256b modifications to adityapk00 mempool streaming API
This commit is based on adityapk00 streaming mempool interface but
avoids using goroutines, which are difficult to reason about.

Co-authored-by: Aditya Kulkarni <adityapk@gmail.com>
2021-07-29 13:47:53 -06:00
Aditya Kulkarni c3e1b98d4f Mempool Streaming API 2021-07-29 13:47:53 -06:00
Larry Ruane ad739ce055 allow Ping testing grpc only if explicitly enabled 2021-03-08 12:25:02 -07:00
Larry Ruane c7c5da1fda don't log method names to stderr unless --grpc-logging-insecure 2021-03-08 11:12:26 -07:00
Larry Ruane d7f35f2713 fix database file location bug introduced by PR320
PR 320 introduced a bug that causes the `blocks` and `lengths` database
files to be located one directory level higher than it they should be.

The bug doesn't cause any functional problem, it only makes the
lightwalletd do more work (re-download the block cache), and it also
makes it not possible to switch between testnet and mainnet.

This patch locates the database files back where they belong.
2021-01-11 12:19:51 -07:00
Larry Ruane 33e7312218 add zcashd versioning to GetLightdInfo result 2020-12-03 22:55:08 -07:00
Larry Ruane c66521335f add GetTreeState gRPC (for checkpoints) 2020-10-28 12:55:38 -06:00
Ben Wilson 63f01502e8 Added option to provide Zcashd RPC parameters from flags 2020-06-08 09:03:21 -04:00
Larry Ruane ead5415693 bump version to 0.4.1, release notes, small fixes 2020-06-05 17:16:36 -06:00
Larry Ruane 1dd63f2ca8 add --darkside-timeout option to override 30-minute default shutdown 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 86fd87404b add darkside SetMetaState, SetBlocksURL for reorg testing 2020-05-21 11:48:03 -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
Taylor Hornby 35e627066c Fix coinbase height in block generation tool 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 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
Ben Wilson 999c00a666 Moved HTTP endpoint startup to a fucntion 2020-04-09 10:27:08 -06:00
Ben Wilson ce99950565 Update http handler 2020-04-09 10:26:42 -06:00
Larry Ruane 1ff6ea4091 move block cache from memory to files 2020-04-08 18:10:50 -06:00
Ben Wilson 76d266e7e5 Added additional version logging on startup 2020-04-03 14:02:18 -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 16ba9f1a81 Added logging for no-tls-very-insecure 2020-03-18 08:56:29 -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 996de790e2 add back the --no-tls-very-insecure for simpler testing 2020-02-11 15:52:49 -07:00
Larry Ruane a4f968823f test improvements, and minor cleanups 2020-01-31 16:36:31 -07:00
Marshall Gaucher 0f57d1e32c
Merge branch 'master' into bump-0.3.0 2020-01-13 16:12:39 -08:00
Bradley Miller 810cf193b8 bump version to v0.3.0 2020-01-08 16:59:16 -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
Larry Ruane f143bcf332 add -version argument to ingest and server executables, v0.1.0 2019-11-08 13:25:52 -07:00
Larry Ruane 389e9a4386 run gofmt on all files (one-time) 2019-10-30 10:43:51 -06:00
Larry Ruane e4445ddace fix constant REORG (due to fixed GetDisplayPrevHash()) 2019-10-07 21:02:38 -06:00
Marshall Gaucher 4b6b77336a
Merge pull request #79 from zcash-hackworks/create_log_file
Add initial conditional to create log file if it does not exist
2019-10-01 16:02:59 -07:00
Larry Ruane da2231f423 add missing tests, empty (stubs) for now 2019-09-25 09:31:49 -06:00