oort-tech/Olympus

link_summaries is not fetched in block_summary function

Closed this issue · 1 comments

When get the summary based on block hash, link_summary is not fetched.
bool l_summary_hash_error(m_cache->block_summary_get(transaction, link_hash, l_summary_hash));, l_summary_hash_error set as true.
@MrAA007 , Could you check this issue?

yes,please modify it.See Chain or Sync.
like this

`
std::vector<bytes> receipts;
for (link_hash : links())
{
	auto receipt = cache_a->transaction_receipt_get(transaction_a, link_hash);
	assert_x(receipt);
	RLPStream receiptRLP;
	receipt->streamRLP(receiptRLP);
	receipts.push_back(receiptRLP.out());
}
h256 receiptsRoot = dev::orderedTrieRoot(receipts);
`