expose /tx?hash="XXXXXXXXXXXX" RPC call

This commit is contained in:
Anton Kaliaev
2017-04-10 22:44:07 +04:00
parent b08f29cb71
commit 63704454a3
9 changed files with 88 additions and 145 deletions
+5 -2
View File
@@ -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.