tutus-chain/pkg/tutusrpc/result/mempool_event.go

14 lines
364 B
Go

package result
import (
"github.com/tutus-one/tutus-chain/pkg/core/mempoolevent"
"github.com/tutus-one/tutus-chain/pkg/core/transaction"
)
// MempoolEvent represents a transaction event either added to
// or removed from the mempool.
type MempoolEvent struct {
Type mempoolevent.Type `json:"type"`
Tx *transaction.Transaction `json:"transaction"`
}