From e69e49492ece44b20c83d51d8e9b4ff51a7282c3 Mon Sep 17 00:00:00 2001 From: Martin Stefcek <35243812+Cifko@users.noreply.github.com> Date: Wed, 3 Jan 2024 12:02:41 +0100 Subject: [PATCH] fix: block signature saving (#867) 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 --- dan_layer/state_store_sqlite/src/writer.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/dan_layer/state_store_sqlite/src/writer.rs b/dan_layer/state_store_sqlite/src/writer.rs index a7b9b9b7f..59f48a40d 100644 --- a/dan_layer/state_store_sqlite/src/writer.rs +++ b/dan_layer/state_store_sqlite/src/writer.rs @@ -191,6 +191,7 @@ impl 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())?), );