TU-ADSP / Blockchain-Logging-Framework

This framework provides advanced querying and logging capabilities for Ethereum and Hyperledger blockchains.
Other
7 stars 5 forks source link

#149 - add emission mode to grammar #159

Closed Knostpe closed 3 years ago

Knostpe commented 3 years ago

Introduces an emission mode in the grammar in form of the Keyword EMISSION MODE and a literal. The literal should either be "default batching", "safe batching" or "streaming". The emission mode gets stored in the programState as an Enum.

Closes #149

rohrschacht commented 3 years ago

Force-pushed to delete the hotfix commit which is already in master.

Knostpe commented 3 years ago

Looks fine, did you test it also by hand? I mean the new grammar functionality

Yes tested if the information ends up in the programState in the right way using the new grammar (debugger). Edited: Wrong keywords have been tested aswell.

Knostpe commented 3 years ago

btw, what is exactly the difference between default batching, safe batching and streaming. Does safe batching make files output after each block?

Safe batching refers to the "on the fly" functionality we have in another issue. If the program stops processing blocks for some reason before being at the last block, the program should be able to emit data which was extracted until this point with this mode. But of course this functionality still needs to be implemented :)