Commit Graph

90 Commits

Author SHA1 Message Date
mdr0id
4354ec70c0 Update ingest logic stream to start at Sapling testnet height 2019-06-07 14:10:56 -07:00
mdr0id
1587db121c Remove 0mq logic, add getblock RPC wrapper, add RPC polling logic, and remove old packages 2019-06-06 17:49:47 -07:00
mdr0id
397a02ba0f Update block name for exporting conflict 2019-06-06 17:44:13 -07:00
str4d
ce11c2107e Merge pull request #41 from str4d/testing-fixes
Testing fixes
2019-05-30 18:21:24 +01:00
Jack Grigg
49a1552523 parser: Correctly serialize Equihash solution 2019-05-23 14:09:43 +01:00
Jack Grigg
c4a48902db ingest: Log block and transaction hashes in display order
We should also be consistent in the SQLite database about either storing
as TEXT in display order, or storing as BLOB in wire order. But as
that's another breaking change, let's bundle it in with anything else we
need to do to address this problem.
2019-05-23 13:42:02 +01:00
Jack Grigg
722118ade9 Add range check on height extracted from coinbase script 2019-05-22 12:04:02 -04:00
Jack Grigg
bb62739502 Test against the first 20 mainnet blocks 2019-05-22 12:04:02 -04:00
Jack Grigg
0e4add3950 Idiomatic constant naming 2019-05-22 12:04:02 -04:00
Jack Grigg
ca123682cc Improve references to serializing and parsing int64 in CScripts 2019-05-22 12:04:02 -04:00
Jack Grigg
5acfb9af34 parser: Correctly parse heights from script-encoded int64 values 2019-05-22 12:04:02 -04:00
str4d
4794bca46e Merge pull request #37 from mdr0id/reorg_logic1
Use REPLACE on db row creation for initial reorg logic
2019-05-14 15:08:17 +01:00
Jack Grigg
0a8eb6846b Re-add removed whitespace 2019-05-14 15:06:12 +01:00
str4d
56b031c317 Merge pull request #40 from str4d/prevhash
Add PrevHash field to CompactBlocks
2019-05-13 09:56:45 +01:00
Jack Grigg
7451d85d15 parser: Add PrevHash field to CompactBlocks 2019-05-04 12:21:01 +01:00
Jack Grigg
ede5e7b7ec walletrpc: Update CompactBlock protobuf with prevHash field 2019-05-04 12:21:01 +01:00
mdr0id
75cc3d49ba Use REPLACE for db row creation on initial reorg logic 2019-05-01 14:49:38 -07:00
George Tankersley
3cea5073ca README: fix persistent bug where publication immediately reveals errors 2019-04-23 18:57:13 -04:00
George Tankersley
b7ae8ff80f README.md: add documentation 2019-04-23 22:50:10 +00:00
George Tankersley
d53507cc39 storage: store blocks and update current height within the same transaction 2019-03-15 17:04:35 -04:00
George Tankersley
6d28a409bc parser: replace genesis "blockheight" with zero 2019-02-25 14:20:44 -05:00
George Tankersley
51614ecd2b module: run go mod tidy && go mod vendor 2019-02-14 18:56:16 +00: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
d81f06e513 parser: fix fOverwintered check for nExpiryHeight 2019-02-14 00:24:25 +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
7d7390eeae parser: include block time in compact encodings 2018-12-17 18:51:30 -05:00
George Tankersley
09007ad856 storage: small fixes and sqlite3-specific tuning 2018-12-15 20:01:28 +00:00
George Tankersley
9a0639761b ingest: update topic title for zcashd patchset 2018-12-15 01:39:45 -05:00
George Tankersley
8cb238fd60 storage: some minor storage & logging tweaks 2018-12-15 01:29:27 -05:00
George Tankersley
a8e099d0fa parser: cache block heights from coinbase 2018-12-14 21:54:59 -05:00
George Tankersley
71c0624abe ingest: make zmq client store raw transaction data 2018-12-14 21:54:33 -05:00
George Tankersley
d4d991a191 frontend, storage: change naming convention for transactions 2018-12-14 21:20:18 -05:00
George Tankersley
69027f5b48 ingest: rename 'client' to 'ingest'
Client was very ambiguous.
2018-12-14 20:51:05 -05:00
George Tankersley
0d84493db3 frontend, storage: improve GetBlockRange, fix tests 2018-12-14 20:51:05 -05:00
George Tankersley
abca4335ec tests: unify testdata directory 2018-12-14 19:19:12 -05:00
George Tankersley
313adc8432 frontend: implement GetBlockRange and GetTransaction 2018-12-14 19:19:12 -05:00
George Tankersley
5c2e5479a3 storage: store full transactions and decouple storage from rpc 2018-12-12 20:56:22 +00:00
George Tankersley
f35e72923a parser: stop sending non-Sapling transactions (e.g. coinbase) in compact block vtx 2018-12-11 21:58:43 +00:00
George Tankersley
f0c2405593 cmd: fix inconsistent logging for binaries 2018-12-11 03:37:42 -05:00
George Tankersley
0680706bdf client: move client code to cmd/ subdir 2018-12-11 03:17:27 -05:00
George Tankersley
045043529c zmq: update zmq client with logging and options 2018-12-11 03:16:30 -05:00
George Tankersley
84e6de593f frontend: remember to close database connections on stop 2018-12-11 03:12:49 -05:00
George Tankersley
f4d918b5f5 storage: remove redundant encoding version column 2018-12-11 03:05:12 -05:00
George Tankersley
f6def7cda8 frontend: implement GetLatestBlock, GetBlock; refactoring 2018-12-11 02:32:40 -05:00
George Tankersley
80b063fe8e parser: expose little-endian hashes for harmony with wire format 2018-12-11 01:38:57 -05:00
George Tankersley
677b74359b server: add app tag to log messages 2018-12-11 00:18:13 -05:00
George Tankersley
54313b7c06 server: begin implementing gRPC methods 2018-12-10 19:43:48 -05:00
George Tankersley
79efd4b911 server: implement gRPC skeleton 2018-12-10 18:29:04 -05:00