Skip to content
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

multi: Include additional fields on RPC tx results. #1441

Merged
merged 1 commit into from
Sep 10, 2018

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Sep 8, 2018

This modifies the results provided by the getrawtransaction and searchrawtransactions RPCs to make them consistent with each other.

In particular, it adds the transaction expiry, block height, and block index fields to the searchrawtransactions result and ensures that both omit the block height when it is zero so that it is not included in the results for mempool transactions.

Since populating the block index requires additional details to be stored to the transaction index to efficiently provide, only the infrastructure is added and the value is left as the default for now, which means it will be omitted and therefore not change the visible behavior.

Finally, it also updates the RPC server help to provide consistent descriptions for the fields and also updates the JSON-RPC documentation.

@davecgh davecgh added this to the 1.4.0 milestone Sep 8, 2018
@davecgh davecgh force-pushed the multi_rpc_include_additional_fields branch 3 times, most recently from 3a7769a to c45ca59 Compare September 10, 2018 03:12
This modifies the results provided by the getrawtransaction and
searchrawtransactions RPCs to make them consistent with each other.

In particular, it adds the transaction expiry, block height, and block
index fields to the searchrawtransactions result and ensures that both
omit the block height when it is zero so that it is not included in the
results for mempool transactions.

Since populating the block index requires additional details to be
stored to the transaction index to efficiently provide, only the
infrastructure is added and the value is left as the default for now,
which means it will be omitted and therefore not change the visible
behavior.

Finally, it also updates the RPC server help to provide consistent
descriptions for the fields and also updates the JSON-RPC documentation.
@davecgh davecgh force-pushed the multi_rpc_include_additional_fields branch from c45ca59 to 5db19dd Compare September 10, 2018 14:18
@davecgh davecgh merged commit 5db19dd into decred:master Sep 10, 2018
@davecgh davecgh deleted the multi_rpc_include_additional_fields branch September 10, 2018 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants