Post
Topic
Board Development & Technical Discussion
Re: latest transactions
by
grue
on 15/06/2013, 01:43:35 UTC


yes, getrawmempool lists the transactions in bitcoind's memory, - but that
still doesnt help - the transactions are in alphabetical order not as they are
received --

how can i get bitcoind to give them to me, in the order it got them ?
That is not supported by bitcoind. You can do one of the following:

  • poll the daemon frequently and use a delta filter with a database to find "new" transactions
  • modify bitcoind to run a command when it receives a transaction. good ideas are: a) hook CTxMemPool::accept() or b) modify walletnotify rpc command to alert for all transactions, not just your own
  • steal procure data from blockchain.info

tl;dr there's no ez solution, you'll have to get your hands dirty.