Commit Graph

46 Commits

Author SHA1 Message Date
Larry Ruane 7381129740 add GetMempoolTx() 2020-09-10 14:01:01 -06:00
Larry Ruane 6aa9bdfc40 refactor GetTaddressBalance* functions to eliminate duplicated code 2020-08-19 13:05:23 -06:00
Larry Ruane 4443b64071 rename GetAddress* to GetTAddress* (review) 2020-08-19 13:05:23 -06:00
Larry Ruane dda62f948c Modification requested by review
- renamed GetAddressBalance to GetAddressBalanceStream
- changed GetAddressBalance argument to repeated (string) rather than
streaming
- rename balance field to valueZat (consistent with zcashd)
2020-08-19 13:05:23 -06:00
Larry Ruane 97840c8ec7 add GetAddressBalance gRPC 2020-08-19 13:05:23 -06:00
Ben Wilson 63f01502e8 Added option to provide Zcashd RPC parameters from flags 2020-06-08 09:03:21 -04:00
Larry Ruane f72a6d8eba add error check to StageBlocksStream 2020-05-29 10:36:34 -06:00
Larry Ruane bcc9aa0a45 update GetTransaction unit test 2020-05-28 17:01:00 -06:00
Kevin Gorham 6b0c1cc43e Fixes GetTransaction returning base64 hex values. 2020-05-28 17:01:00 -06:00
Larry Ruane 7ac1a3f983 small improvements to transaction stuff, small fixes 2020-05-21 11:48:03 -06:00
Larry Ruane 6ddd894a96 change vendor string from ECC DarkWalletD to ECC DarksideWalletD 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 7420d565a8 don't special-case darkside in SendTransaction, just use the mock rpc handler 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 9371f984ae GetBlockRange: don't pass mutex in channel (linter warning) 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 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
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 d258ee75b0 Rename Evil to Darkside, because writing tests isn't evil 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
Larry Ruane 1ff6ea4091 move block cache from memory to files 2020-04-08 18:10:50 -06:00
Ben Wilson d849a91eba Return common.Version for GetLightdInfo 2020-04-03 14:02:18 -06:00
Larry Ruane 46edad2748 add a gRPC test client for performance measurement and stress testing 2020-03-19 21:10:47 -06:00
Larry Ruane 1dc439080b add COPYING and copyright lines 2020-03-12 12:02:55 -06:00
Larry Ruane 40f9dab995 add documentation for lightwalletd APIs and data types 2020-03-02 17:21:41 -07:00
Larry Ruane a4f968823f test improvements, and minor cleanups 2020-01-31 16:36:31 -07: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 20763199c1 add bytestring tests 2019-09-25 09:31:49 -06:00
Larry Ruane da2231f423 add missing tests, empty (stubs) for now 2019-09-25 09:31:49 -06:00
Dimitris Apostolou e8d93c0687
Fix typos 2019-09-25 15:01:46 +03:00
George Tankersley e910ee0475 frontend: increase GetBlockRange timeout to 30 seconds
The previous shorter timeout was causing failures in testing and
production.
2019-02-14 18:48:41 +00:00
George Tankersley 0cb0bb51af frontend: implement SendTransaction 2019-02-14 00:18:15 +00:00
George Tankersley d08abe82b4 walletrpc: improve protobuf/grpc package naming 2019-02-14 00:18:14 +00:00
George Tankersley 7726a6752d cleanup: rename package and vendor dependencies for old go versions
Fixes #8 and begins to address deployability.
2019-01-03 19:14:51 +00:00
George Tankersley 09007ad856 storage: small fixes and sqlite3-specific tuning 2018-12-15 20:01:28 +00:00
George Tankersley d4d991a191 frontend, storage: change naming convention for transactions 2018-12-14 21:20:18 -05:00
George Tankersley 0d84493db3 frontend, storage: improve GetBlockRange, fix tests 2018-12-14 20:51:05 -05:00
George Tankersley 313adc8432 frontend: implement GetBlockRange and GetTransaction 2018-12-14 19:19:12 -05:00
George Tankersley f0c2405593 cmd: fix inconsistent logging for binaries 2018-12-11 03:37:42 -05:00
George Tankersley 84e6de593f frontend: remember to close database connections on stop 2018-12-11 03:12:49 -05:00
George Tankersley f6def7cda8 frontend: implement GetLatestBlock, GetBlock; refactoring 2018-12-11 02:32:40 -05:00