Commit Graph

150 Commits

Author SHA1 Message Date
mdr0id fec37dff9a Initial reorg fix 2019-07-16 19:14:58 -07:00
mdr0id 1002580cd9 Add storing prevhash to local db and logs 2019-07-09 15:52:35 -07:00
Marshall Gaucher 03118ba2d7
Merge pull request #1 from LarryRuane/remove_0mq
add prev_hash to logging
2019-07-08 16:33:22 -07:00
Larry Ruane 2454b05b52 add prev_hash to logging 2019-06-28 12:22:22 -05:00
str4d f2aacce0ca
Merge pull request #46 from mdr0id/remove_go_routine_db_write
Remove go routine that causes threading issues when writing to local db
2019-06-11 16:28:23 +01:00
mdr0id 0813d73e97 Add initial error handling for condition for zcashd down 2019-06-10 21:14:31 -07:00
mdr0id d1e49493b0 Remove/add white space nits. Add comment for -8 value check in error conditional 2019-06-10 20:35:32 -07:00
mdr0id 3d48461e32 Clean up and organize imports 2019-06-10 20:25:43 -07:00
mdr0id ed4591ecc4 Remove go routine that causes threading issues when writing to local db 2019-06-10 19:59:12 -07:00
mdr0id 31576ff5fc Update ingest logic stream to start at actual Sapling testnet height 2019-06-07 14:13:22 -07:00
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