mirror of
https://github.com/logos-blockchain/logos-blockchain-pocs.git
synced 2026-01-28 18:03:13 +00:00
add cms to the ledger when proving
This commit is contained in:
parent
643dbb8e55
commit
bc8c3b6f73
@ -53,6 +53,16 @@ impl ProvedLedgerTransition {
|
||||
nf_proofs: ledger.add_nullifiers(nullifiers),
|
||||
};
|
||||
|
||||
for bundle in &witness.bundles {
|
||||
for update in &bundle.bundle.updates {
|
||||
if update.zone_id == zone_id {
|
||||
for cm in &update.outputs {
|
||||
ledger.add_commitment(cm);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
witness.write(&mut env);
|
||||
let env = env.build().unwrap();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user