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

gettransaction RPC for non-wallet transactions #841

Merged
merged 1 commit into from
May 8, 2012

Conversation

sipa
Copy link
Member

@sipa sipa commented Feb 15, 2012

Works for wallet transactions, memory-pool transaction and block chain
transactions.

Available for all:

  • txid
  • version
  • locktime
  • size
  • coinbase/inputs/outputs
  • confirmations

Available only for wallet transactions:

  • amount
  • fee
  • details
  • blockindex

Available for wallet transactions and block chain transactions:

  • blockhash
  • time

@jgarzik
Copy link
Contributor

jgarzik commented Feb 17, 2012

visual ACK

@gavinandresen
Copy link
Contributor

Sanity tested OK; would be nice if it checked the memory pool for 0-confirmation "other people's" transactions.

@sipa
Copy link
Member Author

sipa commented Feb 19, 2012

@gavinandresen done

CTxDB txdb("r");
CTransaction tx;
CTxIndex txindex;
if (!tx.ReadFromDisk(txdb, COutPoint(hash, 0), txindex))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this ReadFromDisk() fail for memory pool transactions? I could've sworn memory pool txns weren't written to disk until they were included in a block...

@sipa
Copy link
Member Author

sipa commented Feb 22, 2012

Much more complete and totally reworked version pushed.

@luke-jr
Copy link
Member

luke-jr commented Apr 10, 2012

Needs rebasing. Sipa broke everything using locks. >_<

@luke-jr
Copy link
Member

luke-jr commented Apr 18, 2012

This needs rebasing (merges clean, but won't build)

Works for wallet transactions, memory-pool transaction and block chain
transactions.

Available for all:
 * txid
 * version
 * locktime
 * size
 * coinbase/inputs/outputs
 * confirmations

Available only for wallet transactions:
 * amount
 * fee
 * details
 * blockindex

Available for wallet transactions and block chain transactions:
 * blockhash
 * time
@sipa
Copy link
Member Author

sipa commented Apr 18, 2012

rebased

gmaxwell added a commit that referenced this pull request May 8, 2012
gettransaction RPC for non-wallet transactions
@gmaxwell gmaxwell merged commit 2f1dca6 into bitcoin:master May 8, 2012
coblee referenced this pull request in litecoin-project/litecoin Jul 17, 2012
gettransaction RPC for non-wallet transactions
destenson pushed a commit to destenson/bitcoin--bitcoin that referenced this pull request Jun 26, 2016
sipa added a commit to sipa/bitcoin that referenced this pull request Oct 28, 2020
3967d96 Merge bitcoin#838: Make autotools check for all the used openssl functions
3734b68 Configure echo if openssl tests are enabled
6f54e69 Merge bitcoin#841: Avoids a potentially shortening size_t to int cast in strauss_wnaf_
8893f42 Avoids a potentially shortening size_t to int cast in strauss_wnaf_
e669277 Modify bitcoin_secp.m4's openssl check to call all the functions that we use in the tests/benchmarks. That way linking will fail if those symbols are missing
ac05f61 Merge bitcoin#809: Stop treating ECDH as experimental
e6e3d5d travis: add schnorrsig to valgrind and big endian platform test
353dff1 Stop treating ECDH as experimental

git-subtree-dir: src/secp256k1
git-subtree-split: 3967d96
fanquake added a commit to fanquake/bitcoin that referenced this pull request Oct 28, 2020
3967d96 Merge bitcoin#838: Make autotools check for all the used openssl functions
3734b68 Configure echo if openssl tests are enabled
6f54e69 Merge bitcoin#841: Avoids a potentially shortening size_t to int cast in strauss_wnaf_
8893f42 Avoids a potentially shortening size_t to int cast in strauss_wnaf_
e669277 Modify bitcoin_secp.m4's openssl check to call all the functions that we use in the tests/benchmarks. That way linking will fail if those symbols are missing
ac05f61 Merge bitcoin#809: Stop treating ECDH as experimental
e6e3d5d travis: add schnorrsig to valgrind and big endian platform test
353dff1 Stop treating ECDH as experimental

git-subtree-dir: src/secp256k1
git-subtree-split: 3967d96
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants