Bitcoin Forum
April 19, 2024, 07:24:18 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoind sendfrom method - is it atomic?  (Read 592 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/
1713554658
Hero Member
*
Offline Offline

Posts: 1713554658

View Profile Personal Message (Offline)

Ignore
1713554658
Reply with quote  #2

1713554658
Report to moderator
1713554658
Hero Member
*
Offline Offline

Posts: 1713554658

View Profile Personal Message (Offline)

Ignore
1713554658
Reply with quote  #2

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

Posts: 1713554658

View Profile Personal Message (Offline)

Ignore
1713554658
Reply with quote  #2

1713554658
Report to moderator
1713554658
Hero Member
*
Offline Offline

Posts: 1713554658

View Profile Personal Message (Offline)

Ignore
1713554658
Reply with quote  #2

1713554658
Report to moderator
1713554658
Hero Member
*
Offline Offline

Posts: 1713554658

View Profile Personal Message (Offline)

Ignore
1713554658
Reply with quote  #2

1713554658
Report to moderator
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4158
Merit: 8382



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!