18 lines
445 B
Go
18 lines
445 B
Go
|
package solana
|
||
|
|
||
|
import (
|
||
|
"github.com/Secured-Finance/dione/consensus/validation"
|
||
|
rtypes "github.com/Secured-Finance/dione/rpc/types"
|
||
|
"github.com/Secured-Finance/dione/types"
|
||
|
)
|
||
|
|
||
|
func ValidateGetTransaction(task *types.DioneTask) error {
|
||
|
return validation.VerifyExactMatching(task)
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
validation.RegisterValidation(rtypes.RPCTypeSolana, map[string]func(*types.DioneTask) error{
|
||
|
"getTransaction": ValidateGetTransaction,
|
||
|
})
|
||
|
}
|