Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

add confirmation-spendability knob for bitcoind-rpc #367

Merged
merged 2 commits into from
Dec 21, 2015

Conversation

adlai
Copy link
Contributor

@adlai adlai commented Dec 16, 2015

This addresses #39 but does not solve it for blockr users.

When using a full node, wallet-tool.py will display unconfirmed balances by default, but other scripts won't actually spend them unless that behavior is manually configured.

This addresses JoinMarket-Org#39 but does not solve it for blockr users.

It modifies the default behavior of wallet-tool.py when using a
full node to count unconfirmed balances, without spending them.
@AdamISZ
Copy link
Member

AdamISZ commented Dec 16, 2015

It occurred to me earlier today that what people want is for the wallet-tool to by default show both confirmed and unconfirmed amounts. At least, that's what I'd want. That's not to say that fine-grained control isn't nice, too.

Edit: sorry, being dense, you do make the default to show unconfirmed. But I think we really want both in the output?

@AdamISZ
Copy link
Member

AdamISZ commented Dec 16, 2015

Apart from that nit, utACK.

@AdamISZ
Copy link
Member

AdamISZ commented Dec 19, 2015

W.r.t. https://github.com/JoinMarket-Org/joinmarket/pull/367/files#diff-c1c696807da8327197e6ee5f13c1389eR148 - I am wondering, apart from the malleation warning, whether it might not actually work to use unconfirmed (esp. if we consider counterparties not using this setting). Seems unobvious. I think the safest thing for now would be to say "don't do that".

@AdamISZ
Copy link
Member

AdamISZ commented Dec 21, 2015

Tried on mainnet and confirmed functionality: with nothing specified in config, wallet-tool (working off Core interface) showed the unconfirmed coins.

# 1st value is the inclusive minimum, defaults to one confirmation
# 2nd value is the exclusive maximum, defaults to most-positive-bignum (Google Me!)
# leave it unset to defer to bitcoind's default values, ie [1, 9999999]
#listunspent = []
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't this line show #listunspent_args = [] ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you, I'll fix it.

adlai added a commit that referenced this pull request Dec 21, 2015
add confirmation-spendability knob for bitcoind-rpc
@adlai adlai merged commit 74a19be into JoinMarket-Org:develop Dec 21, 2015
@adlai adlai deleted the rbf-ftw branch December 21, 2015 13:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants