1

I understand there is world state and ledger.

1) World state is stored in Level DB or Couch DB 2) Ledger is stored in the form of LevelDB - /var/hyperledger

How about the events ? Where are they stored ? Especially what will happen when a new peer needs to pull the existing events. I was not able to find any documentation. It will be nice if someone can point me to the right information

sun
  • 426
  • 2
  • 4
  • 10

1 Answers1

-1

A peer can't subscribe to historical events, and they are not stored anywhere in Fabric.

Hyperledger Composer stores transaction details (including events) in the Historian, which you can query to extract event details. See this answer for an example.

Paul Russell
  • 545
  • 3
  • 10
  • it's not true because when using java sdk, after channel initialization it fires the previously fired event. Even after restarting the peer container it still fires that event. It's strange behaviour – Next Developer Jan 21 '19 at 16:31