There was an error while loading. Please reload this page.
1 parent b850ca8 commit 672a155Copy full SHA for 672a155
1 file changed
pkg/emulator/machine.go
@@ -397,7 +397,9 @@ func (m *Machine) CollectMCycleRootHashes(
397
C.int32_t(log2BundleMcycleCount),
398
previousPartialBundleC,
399
&cResult))
400
- result = []byte(C.GoString(cResult))
+ if err == nil {
401
+ result = []byte(C.GoString(cResult))
402
+ }
403
})
404
if err != nil {
405
return nil, err
@@ -428,7 +430,9 @@ func (m *Machine) CollectUarchCycleRootHashes(
428
430
C.int32_t(log2BundleUarchCycleCount),
429
431
revertUarchTailC,
432
433
434
435
436
437
438
0 commit comments