Bitcoin Forum
June 22, 2024, 11:20:01 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: can someone explain to me what 'received getdata (X invsz)' means in debug.log  (Read 753 times)
paradigmflux (OP)
Sr. Member
****
Offline Offline

Activity: 378
Merit: 254

small fry


View Profile WWW
June 17, 2014, 03:18:24 AM
 #1

Hi all, I have been trying to find an answer to this - what does lines like this mean in a debug.log?
received getdata (2 invsz)

what is actually happening, and what does 2 invsz stand for?  There are various numbers other than 2 at times, too. 
There are also some entries in the db.log at the same time: unable to allocate memory for mutex; resize mutex region


---
NXT Multipool! Mine Scrypt, SHA, Keccak or X11 for NXT! http://hashrate.org
http://hashrate.org/getting_started for port info!
gweedo
Legendary
*
Offline Offline

Activity: 1498
Merit: 1000


View Profile
June 17, 2014, 03:35:37 AM
 #2

https://en.bitcoin.it/wiki/Protocol_specification#getdata

It means you client asked for some data.
paradigmflux (OP)
Sr. Member
****
Offline Offline

Activity: 378
Merit: 254

small fry


View Profile WWW
June 17, 2014, 03:53:16 AM
 #3

Does anyone know how this would work for a POS-only altcoin?
If getblocks and getwork have been disabled becaue it's no longer POW, what would cause the log to show that message?
I am starting to think that there may be some epic train robbery going on with some of these POS altcoin (some sort of POS exploit that is allowing the dev's to continue to mine POW blocks on POS coins)  (I suspect that this might be done via the daemon's directly ala <coin>d setgenerate true.


Is there a deep dive anywhere on how POS coins work internally?  I am referring to the actual implementation (they use cpuminer code if I am not mistaken) that they use internally to generate valid blocks. 

---
NXT Multipool! Mine Scrypt, SHA, Keccak or X11 for NXT! http://hashrate.org
http://hashrate.org/getting_started for port info!
bitcoinreactor
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
June 17, 2014, 07:42:01 AM
Last edit: June 17, 2014, 07:57:08 AM by bitcoinreactor
 #4

Does anyone know how this would work for a POS-only altcoin?
If getblocks and getwork have been disabled becaue it's no longer POW, what would cause the log to show that message?
I am starting to think that there may be some epic train robbery going on with some of these POS altcoin (some sort of POS exploit that is allowing the dev's to continue to mine POW blocks on POS coins)  (I suspect that this might be done via the daemon's directly ala <coin>d setgenerate true.


Is there a deep dive anywhere on how POS coins work internally?  I am referring to the actual implementation (they use cpuminer code if I am not mistaken) that they use internally to generate valid blocks.  

you did not read a single line in the above answer (from gweedo) to your question.

Quote
getdata is used in response to inv, to retrieve the content of a specific object, and is usually sent after receiving an inv packet, after filtering known elements. It can be used to retrieve transactions, (...)

we're speaking of btc p2p messages here, nothing to do with rpc commands ; p2p network should still work whatever the 'coin' use to create new blocks.

Quote
it's no longer POW, what would cause the log to show that message?
other nodes requesting ... data. ..

Quote
I am starting to think that there may be some epic train robbery going on with some of these POS altcoin (some sort of POS exploit that is allowing the dev's to continue to mine POW blocks on POS coins)  (I suspect that this might be done via the daemon's directly ala <coin>d setgenerate true.

are you seing pow blocks ?
if you know anything about pow/pos they are easy to identify.
If you don't, have a look at sourcecode to see what rules a pos block must follow to be valid

I don't know what fork we're speaking here, but i think it should clearly state (in its sourcecode) that pow blocks are invalid past a given block height / timestamp / whatever, if it's a pos only fork.
AcceptBlock() and/or CheckBlock() should refuse pow blocks past the switch point.

BTC: 17CHqn3XE3Waf7Qfkm9p2MQE1VgB8gVbG4
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!