Bitcoin Forum
May 30, 2024, 01:41:05 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoind sendfrom method - is it atomic?  (Read 594 times)
miso (OP)
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
March 05, 2014, 09:09:45 PM
 #1

sendfrom <fromaccount> <tobitcoinaddress> <amount> [minconf=1] [comment] [comment-to]
Quote
Will send the given amount to the given address, ensuring the account has a valid balance using [minconf] confirmations. Returns the transaction ID if successful (not in JSON object).

But is this function atomic? Is bitcoind / bitcoin-qt multi threaded?
If the server receives many sendfrom requests at the same time, is it safe to use?
Thank you.

edit: hope they do not use bitcoin-qt http://www.coindesk.com/poloniex-loses-12-3-bitcoins-latest-bitcoin-exchange-hack/
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4186
Merit: 8436



View Profile WWW
March 05, 2014, 09:22:36 PM
 #2

All updates to the wallet single thread through a common lock, so yes, it's atomic.

Though no one should be using the accounts functionality for this sort of thing, as there is no safe way to back up that data (among other issues).
miso (OP)
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
March 05, 2014, 09:33:46 PM
 #3

Thanks for reply. What is the problems with bitcoin-qt accounts?
There is no warning except "Account Weaknesses" https://en.bitcoin.it/wiki/Accounts_explained
The only feature I am waiting for is watching only mode without workarounds.
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!