fabric-samples/off_chain_data/application-go
Stanislav Jakuschevskij 1364645c6c
Fix simulated failure issue
Before all transactions were processed and when the failure was
simulated a message was printed and all the transactions still
processed. Now the store returns an error when the failure is simulated
which the listener expects so that it can gracefully shutdown the system
and close the context. The context must be closed correctly or the
checkpointer won't save the last processed transactionId to the file
system.

Signed-off-by: Stanislav Jakuschevskij <stas@two-giants.com>
2025-02-24 13:14:48 +01:00
..
contract Extract block processor and store from listener 2025-02-24 13:14:47 +01:00
parser Refactor parser package, decompose files 2025-02-24 13:14:48 +01:00
processor Fix simulated failure issue 2025-02-24 13:14:48 +01:00
store Fix simulated failure issue 2025-02-24 13:14:48 +01:00
utils Extract block processor and store from listener 2025-02-24 13:14:47 +01:00
app.go Implement caching 2025-02-24 13:14:47 +01:00
connect.go Extract block processor and store from listener 2025-02-24 13:14:47 +01:00
getAllAssets.go Implement caching 2025-02-24 13:14:47 +01:00
go.mod Encapsulate block parser in a package 2025-02-24 13:14:47 +01:00
go.sum Encapsulate block parser in a package 2025-02-24 13:14:47 +01:00
listen.go Fix simulated failure issue 2025-02-24 13:14:48 +01:00
transact.go Execute transactions in go routines concurrently 2025-02-24 13:14:48 +01:00