user@sv:~/doubleshot> grep Xrr9QM87kBrkns5LPF4FMyNBiu8Syc6ZAe getblocktemplate/*
getblocktemplate/92938.txt:{"masternode_payments": true, "coinbaseaux": {"flags": "062f503253482f"}, "votes": [], "previousblockhash": "0000000000017494e6c1652d6c594d0c09416b9161278c99c33cc754160cb86b", "target": "00000000000a9f0c000000000000000000000000000000000000000000000000", "noncerange": "00000000ffffffff", "transactions": [{"hash": "6f64c89ecf62cfdaaa8329315355d89420b17602aa85262b235a70a50aba3533", "depends": [], "fee": 0, "data": "01000000011cf96a28f489636a3e015fd633abfbb1b0e09f9237bedbce54661a1119390db8000000006b48304502204e078c5ccb18842438f68d33a5ee602f900e0f4f772d462d17cc38f58a1e1775022100e16bbc033a70bc122a8a7ee86fae3abd6fb2a40693a427e7c532ca809e410b97012103a254d948ff70bbf19f7e7dd97001f11e3ae4869eae015b537f687d16bcb1d2abffffffff010065cd1d000000001976a91406fe1565a94d0691e74e34350f91b3be4959e71288ac00000000", "sigops": 1}], "mintime": 1403929596, "sigoplimit": 20000, "curtime": 1403931067, "height": 92938, "payee": "Xrr9QM87kBrkns5LPF4FMyNBiu8Syc6ZAe", "version": 2, "coinbasevalue": 500000000, "sizelimit": 1000000, "enforce_masternode_payments": false, "mutable": ["time", "transactions", "prevblock"], "bits": "1b0a9f0c"}
How did you dump all getblocktemplate's for all blocks?
Use command option blocknotify.
# darkcoin.conf
blocknotify=/home/user/scripts/blocks.py
Works for new blocks, but not historical blocks. Any ideas?
Deleted directories blocks and chainstate expecting blocknotify invocation for all historical blocks. No joy.
could you please explain how this works and how to do to get these results ?
blocks.py is a script that runs when a new block is found ?
What to put into this script ?
Waiting now for more than 96h without a payment so it would be nice to know get voted but only issue pool is not paying
When a new block is received, command specified in blocknotify is called.
Any scripts or commands will work.
example
blocknotify=echo %s >> /home/nm05/logs/log.txt
or
blocknotify=darkcoind getblocktemplate | egrep 'height|payee' | xargs >> /home/nm05/logs/log.txt
sample out, command changed from echo to getblocktemplate
nm05@ip-172-31-13-72:~$ cat logs/log.txt
00000000000c3288d3efc900a9640c2339ea6f4ad67e696d5e3410fc8cc64ca3
00000000000b57eab73a312b6bd58d418d3d59954377523248153c87d0cb661d
0000000000087a3f563c14237e137fb972bfdc9fa166e0a5d41dea85ab63f6bb
0000000000085d4c79b7d5ba412a2b8273df3ac26ca1e212785d7afa10ec2ff4
00000000000b2f6b017d19f5f6d328d37c16e3e5d7d393b2b825b8d6c95e3c5c
00000000000658e873998adda4f0c0caf4fd612c9eddf3a23f295fa9f9ab9ed7
height : 94679, payee : XcrdhUKHbQQoZRFdMezYHLXia7wcbgUyGH,
height : 94680, payee : XhPweVoEC9BLCWGJnCUonYoL7iC4eq5Hwy,
If command has error in excution, error is logged to debug.log