-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
blockchain.transaction.relayable / status? #44
Comments
Ok a few notes and questions: So this would presumably use I'm not sure if the array-of-tx's thing is something I'm keen on. Fulcrum has a policy of not supporting compound calls such as this. Fulcrum doesn't even do JSON-RPC batching for that reason. There is a strong preference in the way the design of the server is to only allow for small, fast, light calls. I would say that is would be preferable to avoid passing array's of tx's but rather perhaps just do this as 1-tx-per-call. In addition the array-of-tx's thing may return non-useful results. In pathological cases you can have an array of double-spends or conflicting tx's, and the way So anyway fulcrum would have to loop over the array, calling bitcoind each time .. and they will all return I think if we did this as a 1-tx-per-call -- it would not only make Fulcrum's internals happy, but just be clearer as to what the "contract" is for calling code... |
I hadn't considered the compliactions of transactions in an array interacting with regards to their relayability. I'm fine with dropping the array part of this, and do it on a 1-for-1 basis. |
Maybe we should open an issue in the protocol spec github? Note that
The RPC call for Electrum Cash can return similar or verbatim that information... |
BU doesn't have
|
The |
From what I can see, it's unclear if "allowed" (boolean) has a direct mapping. Perhaps it matches to isFutureMineable? |
I would guess "allowed" in BCHN/ABC maps to "isMineable" (or perhaps "IsMineable" && "isStandard"). I think to be sure one would have to check the sources of BU. I can do that (since I'm already familiar with how BCHN does it, so I can compare) -- if someone else doesn't do it first... |
The equivalent of BCHN's |
thanks @EchterAgo, I double-checked with BU and they will be updating the |
I had a talk with shammah about how he uses electrum for stamp, and we identified a feature that might be good to have: checking if a transaction is relayable or not.
For the case not, it could be due to it being a double-spend, or not matching standardness, or too low fee etc.
The call would take a hex-encoded raw transaction, or an array of such, and then return information about the transactions validity / relayability. It would be particulary useful in places that works with off-line transactions where part of the check for validity is that it's unspent and valid according to the network itself.
Input: Array of raw transactions, and optional broadcast flag.
Output: Boolean for total outcome, array of txid:bool, and optional broadcast txid.
It might be possible to include this functionality as part of #32 (both as a standalone blockchain.transaction.status and as a subscription), rather than making a separate feature.
The text was updated successfully, but these errors were encountered: