Skip to content

Commit

Permalink
fix: block signature saving (#867)
Browse files Browse the repository at this point in the history
Description
---
Signature was not saved in the DB. So whenever the block was not send
immediately but via sync there was no signature and it failed.

Motivation and Context
---

How Has This Been Tested?
---

What process can a PR reviewer use to test or verify this change?
---


Breaking Changes
---

- [x] None
- [ ] Requires data directory to be deleted
- [ ] Other - Please specify
  • Loading branch information
Cifko authored Jan 3, 2024
1 parent b48584c commit e69e494
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dan_layer/state_store_sqlite/src/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ impl<TAddr: NodeAddressable> StateStoreWriteTransaction for SqliteStateStoreWrit
blocks::qc_id.eq(serialize_hex(block.justify().id())),
blocks::is_dummy.eq(block.is_dummy()),
blocks::is_processed.eq(block.is_processed()),
blocks::signature.eq(block.get_signature().map(serialize_json).transpose()?),
blocks::foreign_indexes.eq(serialize_json(block.get_foreign_indexes())?),
);

Expand Down

0 comments on commit e69e494

Please sign in to comment.