Re: Is there an easy way to iterate forward starting from the genesis block?

2021-11-21 Thread Sean Shubin
Took me a while but I finally figured out how to iterate the blocks from the genesis block. Here is the prototype code (in Kotlin) in case anyone is interested. Thanks again for the help. val networkParameters = TestNet3Params.get() val blockStore = MemoryBlockStore(networkParameters) val

Re: Is there an easy way to iterate forward starting from the genesis block?

2021-11-21 Thread Sean Shubin
That helps a lot. Right now puzzling out how to get a peer added but at least I am looking at stuff that is relevant. Thanks. // current prototype in the Kotlin programming language val networkParameters = TestNet3Params.get() val fullStoreDepth = 10 // let's just start with the first 10

Re: Is there an easy way to iterate forward starting from the genesis block?

2021-11-21 Thread Andreas Schildbach
There are a few examples and tools that operate with the protocol directly, without any wallet. Classes to look at are Peer and PeerGroup, and the entire Message hierarchy. On 21/11/2021 09.46, Sean Shubin wrote: Just started looking at bitcoinj.  I am familiar with the bitcoin data

Is there an easy way to iterate forward starting from the genesis block?

2021-11-21 Thread Sean Shubin
Just started looking at bitcoinj. I am familiar with the bitcoin data structure, and want to write applications that analyze the blockchain data, so I am looking for a library that lets me interact with the bitcoin protocol directly. Does bitcoinj have that capability or is it only a