Commit Graph

66 Commits

Author SHA1 Message Date
Larry Ruane a4f968823f test improvements, and minor cleanups 2020-01-31 16:36:31 -07:00
Larry Ruane 36b5c588ec improve test coverage 2019-11-06 10:50:24 -07:00
Larry Ruane 82d4312196 add test for blockHeader.GetDisplayPrevHash() but needs work 2019-11-05 13:55:04 -07:00
Larry Ruane 7b78663312 refactor GetDisplayPrevHash(), part of block header 2019-11-05 13:55:04 -07:00
Larry Ruane 389e9a4386 run gofmt on all files (one-time) 2019-10-30 10:43:51 -06:00
Larry Ruane 5c77cca6bf remove unnecessary ok's, no functional change (#118) 2019-10-29 17:35:13 -07:00
Larry Ruane 4724e403a3 add tests for GetTx* methods 2019-10-16 16:11:36 -06:00
Larry Ruane 6dab32677a add test for tx GetDisplayHash() 2019-10-14 10:43:18 -06:00
Larry Ruane 886250e660 GetDisplayPrevHash() should not change its argument 2019-10-07 14:00:10 -06: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
Marshall Gaucher 6302175a00
Merge pull request #78 from LarryRuane/fix-length-encoding
fix compact size length calculation
2019-09-25 08:04:14 -07:00
Dimitris Apostolou e8d93c0687
Fix typos 2019-09-25 15:01:46 +03:00
Larry Ruane 20d0a040e3 fix compact size length calculation 2019-09-23 15:08:02 -06:00
mdr0id 1002580cd9 Add storing prevhash to local db and logs 2019-07-09 15:52:35 -07:00
Larry Ruane 2454b05b52 add prev_hash to logging 2019-06-28 12:22:22 -05:00
mdr0id 397a02ba0f Update block name for exporting conflict 2019-06-06 17:44:13 -07:00
Jack Grigg 49a1552523
parser: Correctly serialize Equihash solution 2019-05-23 14:09:43 +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
Jack Grigg 7451d85d15
parser: Add PrevHash field to CompactBlocks 2019-05-04 12:21:01 +01:00
George Tankersley 6d28a409bc parser: replace genesis "blockheight" with zero 2019-02-25 14:20:44 -05:00
George Tankersley d81f06e513 parser: fix fOverwintered check for nExpiryHeight 2019-02-14 00:24:25 +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 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 abca4335ec tests: unify testdata directory 2018-12-14 19:19:12 -05: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 80b063fe8e parser: expose little-endian hashes for harmony with wire format 2018-12-11 01:38:57 -05:00
George Tankersley 38d61b509c rpc: update for API and protobuf changes 2018-12-04 18:22:06 -05:00
George Tankersley 0dee0b425e storage: begin implementing sqlite3 storage 2018-11-19 18:20:59 -05:00
George Tankersley 7cc7095a81 parser: implement Compact Block encoding from ZIP307 2018-11-18 01:29:27 +00:00
George Tankersley 7736b2464b parser: extract height from coinbase transaction 2018-11-17 00:02:56 +00:00
George Tankersley 768e5242dc parser: implement transaction GetHash()
Manually tested against the blocks in testdata.
2018-11-16 22:47:52 +00:00
George Tankersley f42dea2b1e parser: present block hashes in big endian order 2018-11-16 21:57:21 +00:00
George Tankersley f4d5ff96ed parser: add basic fuzzing 2018-11-07 21:01:20 +00:00
George Tankersley e91ccd258f client: implement rudimentary zmq client 2018-09-29 00:44:34 +00:00
George Tankersley 58e5f3e78b parser: implement whole-block parsing and publicize constructors 2018-09-28 00:52:40 +00:00
George Tankersley e3b5a9558d parser: finish ZIP243 tests 2018-09-26 23:29:03 +00:00
George Tankersley f41cf60f5c parser: break header checks into subroutine 2018-09-26 20:58:30 +00:00
George Tankersley e297819781 parser: transcribe ZIP243 test vectors 2018-09-26 20:58:30 +00:00
George Tankersley f460b3cfb7 parser: remove unused raw field from test structs 2018-09-25 19:45:06 +00:00
George Tankersley 9703c779ed parser: TODO: ZIP243 tests 2018-09-25 03:24:18 +00:00
George Tankersley b6f8edffda parser: finish zip143 tests 2018-09-25 03:19:14 +00:00
George Tankersley 47e727f1ba parser: move transparent in/out tests to separate functions 2018-09-25 02:13:57 +00:00