// OnRelevantTxAcceptedHandleFunc is invoked when an unmined transaction passes
// the client's transaction filter.
//
// NOTE: This is a btcsuite extension ported from
// github.com/decred/dcrrpcclient.
OnRelevantTxAcceptedHandleFunc is invoked when an unmined transaction passes
the client's transaction filter.

This is a btcsuite extension ported from
github.com/decred/dcrrpcclient.
// OnRelevantTxAcceptedHandleFunc is invoked when an unmined transaction passes // the client ' s transaction filter . // // NOTE : This is a btcsuite extension ported from // github . com / decred / dcrrpcclient .
func OnRelevantTxAcceptedHandleFunc() func(transaction []byte) {
	return func(transaction []byte) {
		acceptTime := time.Now()
		txDetails, _ := rpcClient.DecodeRawTransaction(transaction)
		_logger.Infof("<OnRelevantTxAccepted txHash=%s timestampAccepted=%s/>", txDetails.Hash, utils.TimeLocal(acceptTime))
	}
}
func OnRelevantTxAcceptedHandleFunc ( ) func ( transaction [ ] byte ) { return func ( transaction [ ] byte ) { acceptTime := time . Now ( ) txDetails , _ := rpcClient . DecodeRawTransaction ( transaction ) _logger . Infof ( " " , txDetails . Hash , utils . TimeLocal ( acceptTime ) ) } }
OnRelevantTxAcceptedHandleFunc is invoked when an unmined transaction passes
the client's transaction filter.
OnRelevantTxAcceptedHandleFunc is invoked when an unmined transaction passes the client ' s transaction filter .