Bitcoin Forum
June 24, 2024, 10:20:08 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Development & Technical Discussion / Re: How do I Verify that a Transaction is Mine? on: April 11, 2014, 01:15:14 AM
@piotr_n yes I understand what I'm asking is a bit out of the norm. I'm just wondering if there is any quick way to identify what transaction is mine and what is not using a txid. It may be the case that I end up using gettransaction and just letting it throw an error when the tx is not mine. I just want to know what is available for this specific functionality.

@Ek yes I've looked up isMine in the CPP code, I understand some of it, thanks for verifying I'm headed in the right direction, it does explain a lot.
2  Bitcoin / Development & Technical Discussion / Re: How do I Verify that a Transaction is Mine? on: April 10, 2014, 04:46:38 PM
I would like to know how the wallet processes transactions and determines which transactions belong to me and which do not.


Yes, walletnotify fires when a tx related to me has changed and whatnot. But I would like to understand the back end a little more in the bitcoind.
3  Bitcoin / Development & Technical Discussion / How do I Verify that a Transaction is Mine? on: April 10, 2014, 03:58:54 PM
How does bitcoind know when a transaction is related or of relevance to my address(es)?

How can I check if a transaction is mine quickly? I understand gettransaction will throw an exception when it is not mine, but is there a faster way?


Cheers!
4  Bitcoin / Development & Technical Discussion / Re: Is blocknotify fired on every new block found? on: April 09, 2014, 09:31:10 PM
Thanks! The only reason I asked is because the Bitcoin wiki states something about the best block.

Cheers.
5  Bitcoin / Development & Technical Discussion / Is blocknotify fired on every new block found? on: April 09, 2014, 06:34:06 PM
Is the blocknotify (that is set in the conf file) fired on every new block found in the chain or is it something else?

Cheers.
6  Bitcoin / Development & Technical Discussion / Re: Bitcoind & MySQL Account Question on: April 09, 2014, 05:42:53 PM
Well after no help on this form and a tone of searching I found a great post about this issue, broadly speaking.

For all the noobs like my self who need answers to ruffly this question, here is a good post.

This is the link that I found:
http://bitcoin.stackexchange.com/questions/21153/bitcoin-accounts-feature-is-it-practical-or-scalable



Cheers.
7  Bitcoin / Development & Technical Discussion / Bitcoind & MySQL Account Question on: April 07, 2014, 05:31:29 PM
What is a good way to manage multiple accounts using bitcoind's API and an external DB like MySQL?

Should it work something like this:
1. New user signs up, account address is generated with bitcoind for that account
2. Set the new receiving addresses account, with bitcoind's setaccount, to the new accounts id
3. Database the new account's receiving address, in my MySQL database, linked to that new accounts id
4. Account balances are kept updated in the MySQL database with bitcoind's walletnotify and, blocknotify
5. When an account withdraws funds, use contrib/spendfrom code to send the amount from that accounts receiving address to the sendto address the account requests

Also, Is the bitcoind's listunspent resource heavy on my server?
Is walletnotify and blocknotify reliable for keeping my accounts DB accurately updated?


Any guidance on this would be much appreciated.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!