ebc38c9369
Fix lightwalletd sync loop for DragonX wallet
...
- Handle missing Sapling upgrade in getblockchaininfo response by
defaulting activation height to 1 (DragonX has Sapling active from
genesis but uses NO_ACTIVATION_HEIGHT in chainparams)
- Override consensus branch ID to Sapling (76b809bb) when node reports
Sprout (00000000) due to disabled activation heights
- Include full serialized block header in CompactBlock so the SDK can
validate hashFinalSaplingRoot against the Sapling commitment tree
- Set CompactBlock ProtoVersion to 1
2026-03-20 06:24:54 -05:00
jahway603
0f21f457a6
changed DenioD's github lightwalletd links to git.hush.is lightwalletd links
2020-11-27 22:13:24 -05:00
DenioD
f6fa52fde1
port to hush
2019-10-15 14:38:55 +02:00
Larry Ruane
da85a1d80b
GetDisplayPrevHash() should not change its argument
2019-10-09 14:54:35 -07:00
Larry Ruane
5f4334ff6d
add bytestring tests
2019-09-26 11:33:24 -07:00
Larry Ruane
3c5d62dbc3
fix compact size length calculation
2019-09-25 11:37:34 -07:00
Aditya Kulkarni
7644852fc6
Fix hash encoding, change module names
2019-09-12 12:08:53 -07: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
George Tankersley
e089380dfb
parser: transcribe zip143 joinsplits
2018-09-25 01:55:30 +00:00
George Tankersley
b742b8a5d5
parser: add ZIP143 (pre-Sapling) test vectors
2018-09-25 00:53:33 +00:00
George Tankersley
48a24aeca1
parser: WIP transaction parsing tests
2018-09-20 22:40:39 +00:00
George Tankersley
b9ddd9483d
parser: correct minor errors
2018-09-20 22:40:13 +00:00
George Tankersley
30370cd206
parser/internal/bytestring: return CompactSize reads as int rather than uint64
2018-09-20 22:09:58 +00:00
George Tankersley
2d9cf24f74
parser: use nil to indicate zero-count vectors
2018-09-20 21:54:55 +00:00
George Tankersley
dfb05c261d
parser: finish first pass transaction parsing
2018-09-20 21:44:59 +00:00