Skip to content

Conversation

davout
Copy link

@davout davout commented Jan 30, 2011

I think it's important that the "move" command handles subcent transactions without silently rounding amounts at two decimal places.

It is common in a lot of cases to handle these small amounts (bitcoin central for example).

I want to keep using it as a second security level on bitcoin central, but right now it's not possible because the DB-tracked accounts slowly get out of sync with the bitcoin ones, and at some points transaction get rolled back because some bitcoin account does not have enough funds whereas the DB-tracked one has enough credit to complete the transaction.

If I try to move 0.001 BTC between two accounts I get a "true" returned even though I should have gotten an "Invalid amount" with the previous round-everything approach since nothing would have changed.

With this, rounding is only disabled for the "move" command.

@gavinandresen
Copy link
Contributor

Nice! I'd like to make this part of a set of changes for the 0.3.21 release to deal with sub-bitcent amounts consistently across all the RPC methods and in the GUI.

@davout
Copy link
Author

davout commented Jan 31, 2011

Would it be possible to pull it in for 0.3.20 ?
I'd really like that in order to keep the double balance check that occurs on BC before any transfer.

Also is there a way to manually fiddle with account balances other than moving bitcoins around until achievement of desired accounts statuses ?

@gavinandresen
Copy link
Contributor

See: #79

@gavinandresen
Copy link
Contributor

I pulled the more generic rounding patch.

kac- pushed a commit to kac-/peercoin-ce that referenced this pull request Jun 10, 2014
Update transaction fee text in the "options" dialog
rdponticelli pushed a commit to Criptomonedas/bitcoin that referenced this pull request Nov 26, 2014
364fde6 fix unsigned warning in num_gmp_impl.h (caktux)
dexX7 added a commit to dexX7/bitcoin that referenced this pull request May 25, 2015
f21b6ff Move PUSH_BACK_BYTES into createpayload (dexX7)
dcb5a00 Split MetaDEx payload creation (not on transaction level) (dexX7)
54c19df Split MetaDEx RPC commands for trading (dexX7)
ptschip pushed a commit to ptschip/bitcoin that referenced this pull request Jul 22, 2016
CryptAxe pushed a commit to CryptAxe/bitcoin that referenced this pull request Nov 15, 2017
* changing valid sidechain array to a c++ std::array

* remove trailing commas

* fixed improper spacing
CryptAxe pushed a commit to CryptAxe/bitcoin that referenced this pull request Dec 28, 2017
* changing valid sidechain array to a c++ std::array

* remove trailing commas

* fixed improper spacing
classesjack pushed a commit to classesjack/bitcoin that referenced this pull request Jan 2, 2018
effectsToCause added a commit to vericoin/vericoin that referenced this pull request Jun 22, 2018
satindergrewal pushed a commit to chips-blockchain/chipschain that referenced this pull request Jun 22, 2021
check ref. notarization in disconnect tip
rajarshimaitra pushed a commit to rajarshimaitra/bitcoin that referenced this pull request Aug 5, 2021
* Stylistic change to Meni Rosenfeld paragraph.

Propose to change the word order and a few words to make it easier to read.

* removed the word and to make the text shorter
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants