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

Commits on Sep 10, 2018

  1. multi: Include additional fields on RPC tx results.

    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 committed Sep 10, 2018
    Configuration menu
    Copy the full SHA
    5db19dd View commit details
    Browse the repository at this point in the history