nochowderforyou / clams

Clam Project
MIT License
62 stars 58 forks source link

Add 'raw' parameter to 'getblock' and 'getblockbynumber' #198

Closed dooglus closed 9 years ago

dooglus commented 9 years ago

… to allow dumping of raw block data suitable for use with 'submitblock'.

Here's a node connected to no peers manually adding blocks fetched from a remote peer over ssh:

$ clamd getblockcount
526532
$ clamd submitblock $(ssh server clamd getblockbynumber 526533 false true)
$ clamd getblockcount
526533
$ clamd submitblock $(ssh server clamd getblockbynumber 526534 false true)
$ clamd getblockcount
526534
$