MCPcopy Create free account
hub / github.com/chain/Core / rootErr

Function rootErr

protocol/validation/validation_test.go:539–548  ·  view source on GitHub ↗

Like errors.Root, but also unwraps vm.Error objects.

(e error)

Source from the content-addressed store, hash-verified

537
538// Like errors.Root, but also unwraps vm.Error objects.
539func rootErr(e error) error {
540 for {
541 e = errors.Root(e)
542 if e2, ok := e.(vm.Error); ok {
543 e = e2.Err
544 continue
545 }
546 return e
547 }
548}
549
550func hashData(data []byte) bc.Hash {
551 var b32 [32]byte

Callers 1

TestTxValidationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected