Open c2bo opened 2 years ago
This would be the relevant code: https://github.com/hyperledger/indy-plenum/blob/ubuntu-20.04-upgrade/plenum/server/consensus/ordering_service.py#L1998-L2010
@esplinr, @Toktar, Would either of you be ale to provide some insight or background on this behavior?
Plenum uses a freshness check to make sure the current state of the system has a certain freshness in the audit ledger with default values of
If I understand the audit ledger and expected behavior for this correctly, we would like to make sure that at any point in time there is an audit transaction reflecting the current state of the system that is <300s old. What seems to happen is that this is checked per ledger (config, domain, pool) and we create 3 transactions (amount of ledgers) per defined freshness interval instead of the one that should be sufficient? This causes a lot of additional transactions / uses a lot of storage in the audit ledger.
To check the behavior, i created a local network with 4 nodes and did not post any transactions (and did not start a ledger browser to not cause any traffic at all). The logs resulting showed: [node1 - master]:
[node2]:
If you search for
committed 1 audit txns; uncommitted root hash is
in logs from productive networks (with level debug), you should be able to find something similar - 3 transactions per 5 minutes during idle time.Can someone with more knowledge about plenum and the audit ledger verify if my assumption is correct that one audit transaction would be enough or comment on the implications if this was changed?