Commit Graph

115 Commits

Author SHA1 Message Date
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
Aditya Kulkarni af29c003ad Use x-real-ip header 2020-05-19 20:12:54 -07:00
Aditya Kulkarni e96e088f2d Add end height to latency 2020-05-19 16:00:01 -07:00
Aditya Kulkarni e16530fa5d daily active block 2020-05-19 15:39:06 -07:00
Aditya Kulkarni 7b73309821 Add latency logging 2020-05-17 22:51:51 -07:00
Aditya Kulkarni 74c2196246 Add logging 2020-05-13 19:02:09 -07: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
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
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
Aditya Kulkarni cc30455a72 Validate input t-address 2019-12-04 14:02:21 -08:00
Larry Ruane 5f4334ff6d add bytestring tests 2019-09-26 11:33:24 -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 d56fe7bf1a Remove SQL from grpc server 2019-09-25 13:28:55 -07:00
Aditya Kulkarni 3eaabea547 GetTransaction from zcashd instead of store 2019-09-25 12:10:32 -07:00
Aditya Kulkarni 8421285313 Merge error codes 2019-09-25 11:44:42 -07:00
Aditya Kulkarni d59757571d Remove UTXOs call 2019-09-25 11:43:54 -07:00
Aditya Kulkarni f0ff091f7b Log sapling height error 2019-09-25 11:35:52 -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
Aditya Kulkarni cf0b87ac9b Log sapling height 2019-09-20 14:49:47 -07:00
Aditya Kulkarni 3b4573c4f0 Add chainname and activation height to getinfo 2019-09-18 21:16:15 -07:00
Aditya Kulkarni e723c4e1d8 Return tx heights 2019-09-17 13:26:23 -07:00
Aditya Kulkarni d36126ba9d Add transparent txns 2019-09-13 16:02:58 -07:00
Aditya Kulkarni 7644852fc6 Fix hash encoding, change module names 2019-09-12 12:08:53 -07:00
Aditya Kulkarni 8edf85483b Read UTXOs from RPC 2019-09-11 17:06:29 -07:00
Aditya Kulkarni b4796bc67e New RPC call 2019-09-10 16:34:01 -07:00
Aditya Kulkarni 0c85de50ad New RPC call 2019-09-05 11:48:32 -07: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