MCPcopy Create free account
hub / github.com/akash-network/node / validateHash

Function validateHash

x/verification/keeper/msg.go:1786–1791  ·  view source on GitHub ↗
(hash []byte, name string)

Source from the content-addressed store, hash-verified

1784}
1785
1786func validateHash(hash []byte, name string) error {
1787 if len(hash) != sha256.Size {
1788 return errorsmod.Wrapf(moduletypes.ErrInvalidReason, "%s must be %d bytes", name, sha256.Size)
1789 }
1790 return nil
1791}
1792
1793func addCoin(a, b sdk.Coin) (sdk.Coin, error) {
1794 if a.IsNil() || a.IsZero() {

Callers 7

SlashProviderBondMethod · 0.85
PostSnapshotHashMethod · 0.85
SettleAuditEscrowMethod · 0.85
SubmitAttestationMethod · 0.85
RevokeAttestationMethod · 0.85
ResolveDiscrepancyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected