mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-26 09:54:19 +00:00
expose /tx?hash="XXXXXXXXXXXX" RPC call
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
package indexer
|
||||
|
||||
import "github.com/tendermint/tendermint/types"
|
||||
import (
|
||||
"errors"
|
||||
"github.com/tendermint/tendermint/types"
|
||||
)
|
||||
|
||||
// Null acts as a /dev/null.
|
||||
type Null struct{}
|
||||
|
||||
// Tx panics.
|
||||
func (indexer *Null) Tx(hash string) (*types.TxResult, error) {
|
||||
panic("You are trying to get the transaction from a null indexer")
|
||||
return nil, errors.New("Indexing is disabled (set `tx_indexer=kv` in config)")
|
||||
}
|
||||
|
||||
// Batch returns nil.
|
||||
|
||||
Reference in New Issue
Block a user