Storage chain fixes + guide (#9504)

* Transaction storage guide and fixes

* Apply suggestions from code review

Co-authored-by: Bruno Škvorc <bruno@skvorc.me>

* Update frame/transaction-storage/README.md

Co-authored-by: Bruno Škvorc <bruno@skvorc.me>

* Extended example

Co-authored-by: Bruno Škvorc <bruno@skvorc.me>
This commit is contained in:
Arkadiy Paronyan
2021-08-05 14:07:23 +02:00
committed by GitHub
parent 43edf2d9ad
commit 52b0a4845f
6 changed files with 92 additions and 6 deletions
@@ -333,7 +333,10 @@ impl<B: BlockT> BlockRequestHandler<B> {
target: LOG_TARGET,
"Missing indexed block data for block request."
);
break
// If the indexed body is missing we still continue returning headers.
// Ideally `None` should distinguish a missing body from the empty body,
// but the current protobuf based protocol does not allow it.
Vec::new()
},
}
} else {