Larry Ruane
33e7312218
add zcashd versioning to GetLightdInfo result
2020-12-03 22:55:08 -07:00
Larry Ruane
7381129740
add GetMempoolTx()
2020-09-10 14:01:01 -06:00
Larry Ruane
31a19484e2
Improve error checking, README improvements ( #278 )
...
Deserialize blocks and transactions as they are staged, to catch errors
earlier (such as trying to stage transactions as blocks), improve logging,
improve error handling (don't crash if ApplyStaged is given a height
that's higher than one beyond the latest active block).
2020-06-03 19:18:04 -06:00
Larry Ruane
faca1ecbef
increase the 252 per-block transaction limit ( #273 )
2020-06-03 18:58:26 -06:00
Taylor Hornby
2d8a55c53f
Fix missing hex encoding of darksidewalletd's sendrawtransaction response
2020-05-28 16:05:43 -06:00
Larry Ruane
1dd63f2ca8
add --darkside-timeout option to override 30-minute default shutdown
2020-05-21 11:48:03 -06:00
Larry Ruane
0217670d8c
add logging for darkside rpcs
2020-05-21 11:48:03 -06:00
Larry Ruane
007dbbf13c
fix first block hash
2020-05-21 11:48:03 -06:00
Larry Ruane
2f0b2054ba
Fix transaction staging
...
The following works:
grpcurl -plaintext -d '{"saplingActivation": 663150,"branchID": "bad", "chainName":"x"}' localhost:9067 cash.z.wallet.sdk.rpc.DarksideStreamer/Reset
grpcurl -plaintext -d '{"height":663150,"nonce":5,"count":3}' localhost:9067 cash.z.wallet.sdk.rpc.DarksideStreamer/StageBlocksCreate
grpcurl -plaintext -d '{"height":663152,"url":"https://raw.githubusercontent.com/zcash-hackworks/darksidewalletd-test-data/master/transactions/t-shielded-spend "}' localhost:9067 cash.z.wallet.sdk.rpc.DarksideStreamer/StageTransactions
grpcurl -plaintext -d '{"height":663152}' localhost:9067 cash.z.wallet.sdk.rpc.DarksideStreamer/ApplyStaged
grpcurl -plaintext -d '{"height":663152}' localhost:9067 cash.z.wallet.sdk.rpc.CompactTxStreamer/GetBlock
(shows the block with one transaction)
2020-05-21 11:48:03 -06:00
Larry Ruane
7ac1a3f983
small improvements to transaction stuff, small fixes
2020-05-21 11:48:03 -06:00
Larry Ruane
3defdcd1ee
Improve error handling
2020-05-21 11:48:03 -06:00
Larry Ruane
f8794dbe05
update submitblocks.sh, return an error if GetBlock height is too low, instead of crashing
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
391e886afc
better error handling, remove unused DarksideTx
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
3bada32bee
fixes on last commit, especially StageBlocksCreate
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
c8ee805933
remove Blockchaininfo json type assertions, no functional change
2020-05-21 11:48:03 -06:00
Larry Ruane
d7e1005523
DarksideAddBlock(): remove generation of correct prevhash
2020-05-21 11:48:03 -06:00
Larry Ruane
22d5c97e7f
SetBlocksURL: replace curl with http client
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
e3aca9bec7
review comment: 30-minute shutdown improvement
...
Safer to shutdown darksidewalletd directly after 30 minutes, instead
of waiting for a zcashd rpc to occur (darksideRawRequest());
also using a goroutine is simpler.
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
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
Taylor Hornby
673a9635fc
Run gofmt on server/main.go and common/darkside.go
2020-04-24 16:55:47 -06:00
Taylor Hornby
d55d9b1c64
Add tool for generating fake blockchains
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