Bitcoin Forum
October 17, 2018, 09:06:56 AM *
News: Make sure you are not using versions of Bitcoin Core other than 0.17.0 [Torrent], 0.16.3, 0.15.2, or 0.14.3. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: bitcoind + getrawmempool return empty array  (Read 59 times)
edwardspitz
Sr. Member
****
Offline Offline

Activity: 532
Merit: 250


View Profile
April 24, 2018, 10:21:21 AM
 #1

I was trying to use getrawmempool:

Code:
bitcoin-cli getrawmempool

But it just returns empty result:
Quote
[]

I am running bitcoind in prune mode. Could this be the reason or is there another explanation?
1539767216
Hero Member
*
Offline Offline

Posts: 1539767216

View Profile Personal Message (Offline)

Ignore
1539767216
Reply with quote  #2

1539767216
Report to moderator
If you see garbage posts (off-topic, trolling, spam, no point, etc.), use the "report to moderator" links. All reports are investigated, though you will rarely be contacted about your reports.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
AdolfinWolf
Hero Member
*****
Offline Offline

Activity: 826
Merit: 627



View Profile
April 24, 2018, 01:15:05 PM
Merited by starmyc (1)
 #2

I was trying to use getrawmempool:

Code:
bitcoin-cli getrawmempool

But it just returns empty result:
Quote
[]

I am running bitcoind in prune mode. Could this be the reason or is there another explanation?


No, running bitcoind in prune mode indeed does not let you use "getrawmempool".

 
See the answer below which describes it better than i ever could.

The mempool is where transactions are stored until they get put into a block. It would be hard to determine you had the correct mempool if you didn't keep track of the whole block chain, though. For example, someone could broadcast an older transaction, and you would have no way to determine that you shouldn't just add it to your mempool if you didn't keep track of the whole block chain. Transactions also have to pass some basic validation before they can be added to the mempool, validation which requires having all the blockchain data.

If there were a program to implement this, it would at least have to process all new blocks as they came in, in order to determine which transactions to take out of the mempool as blocks get solved.
https://bitcoin.stackexchange.com/questions/35811/bitcoind-getrawmempool-without-downloading-the-full-blockchain

edwardspitz
Sr. Member
****
Offline Offline

Activity: 532
Merit: 250


View Profile
April 24, 2018, 03:07:12 PM
 #3

I was trying to use getrawmempool:

Code:
bitcoin-cli getrawmempool

But it just returns empty result:
Quote
[]

I am running bitcoind in prune mode. Could this be the reason or is there another explanation?


No, running bitcoind in prune mode indeed does not let you use "getrawmempool".

 
See the answer below which describes it better than i ever could.

The mempool is where transactions are stored until they get put into a block. It would be hard to determine you had the correct mempool if you didn't keep track of the whole block chain, though. For example, someone could broadcast an older transaction, and you would have no way to determine that you shouldn't just add it to your mempool if you didn't keep track of the whole block chain. Transactions also have to pass some basic validation before they can be added to the mempool, validation which requires having all the blockchain data.

If there were a program to implement this, it would at least have to process all new blocks as they came in, in order to determine which transactions to take out of the mempool as blocks get solved.
https://bitcoin.stackexchange.com/questions/35811/bitcoind-getrawmempool-without-downloading-the-full-blockchain


Ok, that explains that explains it then. Thanks a lot!
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!