Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
IsAllFromMe #9167
Conversation
fanquake
added
the
Wallet
label
Nov 16, 2016
|
Concept ACK |
|
Fee: 0 is perhaps confusing? SelectCoinsMinConf behavior change sounds great. @AdamISZ Joinmarket results in a lot of transactions like this, thoughts? |
|
@gmaxwell I think that was just a mistake in my description, it looks like it doesn't report anything for the fee unless it has the correct fee. If it can't calculate the fee it doesn't subtract anything when reporting the amount. |
|
rebased after #8580 |
|
I expected this to leave out the fee field on coinjoins in listtransactions and gettransaction but find it isn't: $ ./bitcoin-cli gettransaction 14947302eab0608fb2650a05f13f6f30b27a0a314c41250000f77ed904475dbb | grep fee |
|
I replaced the first commit with a different formulation by @sdaftuar that I like better. The functionality is the same and all the other commits are unchanged. |
|
@gmaxwell from IRC in regards to listtransactions and gettransaction:
|
|
ACK. |
Commit messages could be a little better, and could mention whether the changes affect behavior or not. |
|
Rebased with more verbose commit messages. @ryanofsky's question about the All valid transactions have vin.size() > 0, so I'm not worried about the |
|
utACK 1bab789 |
ryanofsky
referenced this pull request
Jan 23, 2017
Merged
[wallet] [refactor] Simplify getbalance implementation #9614
|
I believe part of this was merged with bumpfee. Not sure it needs rebase, but a rebase would be nice to see what else is left? |
morcos
added some commits
Nov 15, 2016
|
rebased to accommodate first commit already being merged. no changes. |
NicolasDorier
referenced this pull request
Mar 8, 2017
Closed
Cache vout IsMine() value on `CWallet::AvailableCoins()` #9939
|
I would have used an enum with value (DIRTY, YES, NO) and stored an array of it in WalletTx indexed by ISMINE_* value, instead of having to declare two boolean by ISMINE_* version we want to support later. |
|
Needs rebase. |
|
Still needs rebase. If you intend to no longer maintain this, please close it. |
|
This has some bug fixes so it should probably still happen, but I'll need to spend a bit of time to make sure the rebase still makes sense since there have been a bunch of changes. I'll bring it to a resolution shortly. |
morcos commentedNov 15, 2016
•
Edited 1 time
-
morcos
Dec 13, 2016
Created a new wallet and walletTx function
IsAllFromMewhich correctly computes whether all the inputs to a transaction match the requested IsMine filter.Original first commit 766e8a4 already merged.
IsFromMe.SelectCoinsMinConfto only consider new outputs spendable quickly if all the inputs were ours, not just at least one.gettransactionfor mixed debit transactions where some inputs were ours and some weren't. It'll report the correct fee if possible, otherwise 0. Note that the fee reported in the details and any other function which depends onListTransactionsis not changed asgetbalance("*")depends on having incorrect negative fees calculated on mixed debit transactions in order to track the right balances.Note that there are other places in the code such as
AddToWalletIfInvolvingMewhich ideally would be updated to distinguish between 0 satoshi prevouts that are "MINE" and prevouts that aren't "MINE".