Skip to content

Commit

Permalink
Merge pull request #2658 from planetarium/improve/get-sheets
Browse files Browse the repository at this point in the history
GetSheets Use StateRootHash instead of BlockHash
  • Loading branch information
ipdae authored Dec 13, 2024
2 parents 6ca1f00 + 8a9d08a commit 604c238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NineChronicles.Headless/BlockChainService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ public UnaryResult<Dictionary<byte[], byte[]>> GetSheets(
sw.Restart();
if (addresses.Any())
{
var stateRootHash = new BlockHash(stateRootHashBytes);
var stateRootHash = new HashDigest<SHA256>(stateRootHashBytes);
IReadOnlyList<IValue> values = _blockChain.GetWorldState(stateRootHash).GetLegacyStates(addresses);
sw.Stop();
Log.Information("[GetSheets]Get sheet from state: {Count}, Elapsed: {Elapsed}", addresses.Count, sw.Elapsed);
Expand Down

0 comments on commit 604c238

Please sign in to comment.