mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-07 20:40:44 +00:00
24 lines
453 B
Go
24 lines
453 B
Go
package proxy
|
|
|
|
import (
|
|
"github.com/tendermint/iavl"
|
|
"github.com/tendermint/tendermint/crypto/merkle"
|
|
)
|
|
|
|
func defaultProofRuntime() *merkle.ProofRuntime {
|
|
prt := merkle.NewProofRuntime()
|
|
prt.RegisterOpDecoder(
|
|
merkle.ProofOpSimpleValue,
|
|
merkle.SimpleValueOpDecoder,
|
|
)
|
|
prt.RegisterOpDecoder(
|
|
iavl.ProofOpIAVLValue,
|
|
iavl.IAVLValueOpDecoder,
|
|
)
|
|
prt.RegisterOpDecoder(
|
|
iavl.ProofOpIAVLAbsence,
|
|
iavl.IAVLAbsenceOpDecoder,
|
|
)
|
|
return prt
|
|
}
|