Comments (4)
Yes should be able to support multiple optional args with jsonrpc-derive, see here. Just need to fill in the missing ones with None
.
from parity-zcash.
@svyatonik jsonrpc-derive
is now merged, I've added an issue paritytech/jsonrpc#363 to implement multiple trailing params. I'm happy to do the work to rebase your branch - just let me know.
By the way the issue with failing to deserialize single tuple was because of a missing comma. Single param tuple should be (u64,)
.
from parity-zcash.
This is currently blocked by the fact that currently jsonrpc_macro
doesn't support more than one optional Trailing
argument && we need more in some RPC methods (createrawtransaction
is the first example). So we need either to support this case in jsonrpc
(preferable) or to do a custom args parsing in pzec
.
I was researching if that's easy-to-add-feature to the existing jsonrpc_macro
&& looks like it is, but the problem is that it would require custom macro of ~150 LOCs for every number of trailing args that we're going to support (i.e. if there'll be RPC with 6 optional trailing args, we'll need ~1KLOC), which isn't ideal. Moreover, today I stumbled upon this PR, which should obsolete jsonrpc_macro
. So I'm currently researching if this is easy/possible to support multiple optional args in jsonrpc-derive
. If so, then we'll probably switch to custom jsonrpc
branch until new version is merged && published.
from parity-zcash.
@ascjones Thanks! I'll open PR a bit later && will cc you :)
from parity-zcash.
Related Issues (20)
- Unexpected RPC ports used
- Node subver identifies as bcore
- Thread 'Heavy verification' panicked HOT 2
- no peers for the testnet
- Use Crypto2 to replace RustCrypto?
- Attempted to Leave Type `linked_hashmap::Node<_>` Uninitialized
- Do not save empty Sapling commitment tree states in DB
- Thread panic at block 14b054be76b515b12efcfdfd6e5d6bfe39988f937f48768c61e5c01600000000 HOT 10
- Getting weird 'headers' messages when syncing over network HOT 1
- Constructing groth16 proofs
- Equihash optimization
- Move as much crypto for zk-proofs as possible to bn library
- Cannot read block HOT 3
- Cannot append block: Verification("Transaction(1, Signature(0, EvalFalse))") HOT 6
- Cannot append block: Verification("Transaction(1, Overspend)")
- Cannot append block: Verification("Transaction(3, Signature(0, EvalFalse))")
- Very short test chain HOT 3
- Multiple errors on sync HOT 3
- Verification Panicked
- Disconnect multiple peers during sync HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parity-zcash.