-
Notifications
You must be signed in to change notification settings - Fork 35.6k
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
Conversation
visual ACK |
Sanity tested OK; would be nice if it checked the memory pool for 0-confirmation "other people's" transactions. |
@gavinandresen done |
CTxDB txdb("r"); | ||
CTransaction tx; | ||
CTxIndex txindex; | ||
if (!tx.ReadFromDisk(txdb, COutPoint(hash, 0), txindex)) |
There was a problem hiding this comment.
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...
Much more complete and totally reworked version pushed. |
Needs rebasing. Sipa broke everything using locks. >_< |
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
rebased |
gettransaction RPC for non-wallet transactions
gettransaction RPC for non-wallet transactions
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
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
Works for wallet transactions, memory-pool transaction and block chain
transactions.
Available for all:
Available only for wallet transactions:
Available for wallet transactions and block chain transactions: