Bitcoin Forum
April 23, 2024, 01:44:20 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoind command parameter [minconf=1]  (Read 4234 times)
mtbitcoin (OP)
Legendary
*
Offline Offline

Activity: 876
Merit: 1000


Etherscan.io


View Profile
September 15, 2011, 06:43:51 AM
 #1

Hi

I have a question regarding the bitcoind command line parameters. I noticed in some of commands there is [minconf=1]. I know this stands for minimum confirmations for transactions like listtransactions, listreceivedbyaccount, listreceivedbyaddress,etc. But for other commands like "move" and "sendfrom" which are basically internal accounting transfers what do these represent? Why is there a need to the [minconf] here. For example


move
<fromaccount> <toaccount> <amount> [minconf=1] [comment]

sendfrom
<fromaccount> <tobitcoinaddress> <amount> [minconf=1] [comment] [comment-to]

Thanks

EtherScan::Ethereum Block Explorer | BlockScan::Coming Soon
1713879860
Hero Member
*
Offline Offline

Posts: 1713879860

View Profile Personal Message (Offline)

Ignore
1713879860
Reply with quote  #2

1713879860
Report to moderator
1713879860
Hero Member
*
Offline Offline

Posts: 1713879860

View Profile Personal Message (Offline)

Ignore
1713879860
Reply with quote  #2

1713879860
Report to moderator
1713879860
Hero Member
*
Offline Offline

Posts: 1713879860

View Profile Personal Message (Offline)

Ignore
1713879860
Reply with quote  #2

1713879860
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713879860
Hero Member
*
Offline Offline

Posts: 1713879860

View Profile Personal Message (Offline)

Ignore
1713879860
Reply with quote  #2

1713879860
Report to moderator
Gavin Andresen
Legendary
*
Offline Offline

Activity: 1652
Merit: 2216


Chief Scientist


View Profile WWW
September 16, 2011, 10:10:22 PM
 #2

sendfrom needs the minconf to know if it should fail because of too few confirmed coins in the account.

move used to need minconf for essentially the same reason, but as of (some release in the past) it always succeeds.
E.g. if account A has 5 0-confirmation bitcoins and 5 1-confirmation bitcoins then:
  move "A" "B" 10
... used to fail, because A's 1-confirmation balance was only 5.

Now it will succeed, giving it a -5 one-confirmation balance.  move "A" "B" 100 will also now always succeed, making A's balance go negative.

How often do you get the chance to work on a potentially world-changing project?
qwk
Donator
Legendary
*
Offline Offline

Activity: 3542
Merit: 3411


Shitcoin Minimalist


View Profile
September 17, 2011, 10:43:01 AM
 #3

I've actually always wondered why the "move" command actually allows negative balances.
Was there someone thinking of a possible use for that, like, dunno, maybe some kind of "ledger"?
Or was it a decision like not wanting to interfere with whatever possible uses an application developer could find?
I guess i'd personally like to have a configuration option to make bitcoind only accept positive account balances.

Yeah, well, I'm gonna go build my own blockchain. With blackjack and hookers! In fact forget the blockchain.
mtbitcoin (OP)
Legendary
*
Offline Offline

Activity: 876
Merit: 1000


Etherscan.io


View Profile
September 17, 2011, 06:40:15 PM
Last edit: September 17, 2011, 06:52:54 PM by mtbitcoin
 #4

I've actually always wondered why the "move" command actually allows negative balances.
Was there someone thinking of a possible use for that, like, dunno, maybe some kind of "ledger"?
Or was it a decision like not wanting to interfere with whatever possible uses an application developer could find?
I guess i'd personally like to have a configuration option to make bitcoind only accept positive account balances.

Yes, I had the same question too. At first i thought it was an error on my end that the move allowed negative balances. Given that the accounts features is used as an internal ledger I would have assumed that move command would not allow negative balances. If this is by design one possible reason that i can think of is due to optimization perhaps? (so that the getbalance check would not be executed before the move is allowed)


EtherScan::Ethereum Block Explorer | BlockScan::Coming Soon
2112
Legendary
*
Offline Offline

Activity: 2128
Merit: 1065



View Profile
September 17, 2011, 09:24:34 PM
 #5

I'm kinda curious who (and why) would ever run a real accounting based on the bitcoin's wallet.dat. The implementation here is obviously not compliant with anything that would be considered a GAAP (Generally Accepted Accounting Principles). I understand that some people will fly-into-the-night rather than face an audit, but is there anyone planning on running a real business that is going to have a real audit trail in their accounts?

Please comment, critique, criticize or ridicule BIP 2112: https://bitcointalk.org/index.php?topic=54382.0
Long-term mining prognosis: https://bitcointalk.org/index.php?topic=91101.0
mtbitcoin (OP)
Legendary
*
Offline Offline

Activity: 876
Merit: 1000


Etherscan.io


View Profile
September 18, 2011, 06:43:22 AM
 #6

I'm kinda curious who (and why) would ever run a real accounting based on the bitcoin's wallet.dat. The implementation here is obviously not compliant with anything that would be considered a GAAP (Generally Accepted Accounting Principles). I understand that some people will fly-into-the-night rather than face an audit, but is there anyone planning on running a real business that is going to have a real audit trail in their accounts?

The "accounting" term that is referred here is not your standard GAAP. But instead is an implementation to track balances in bitcoin "accounts". This is especially usefull when building shared services like wallet

EtherScan::Ethereum Block Explorer | BlockScan::Coming Soon
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!