aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorBojie Wu <bojie@dexon.org>2018-10-09 13:28:45 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commit3e3089a27d917f4bb1327c5e8b5892927d2c7cfb (patch)
tree8eb21426e3d414dc08d92d8767c8b540684fbbc9 /core
parent055e84b3b5303b029a375c47143d02a56070aae8 (diff)
downloaddexon-3e3089a27d917f4bb1327c5e8b5892927d2c7cfb.tar
dexon-3e3089a27d917f4bb1327c5e8b5892927d2c7cfb.tar.gz
dexon-3e3089a27d917f4bb1327c5e8b5892927d2c7cfb.tar.bz2
dexon-3e3089a27d917f4bb1327c5e8b5892927d2c7cfb.tar.lz
dexon-3e3089a27d917f4bb1327c5e8b5892927d2c7cfb.tar.xz
dexon-3e3089a27d917f4bb1327c5e8b5892927d2c7cfb.tar.zst
dexon-3e3089a27d917f4bb1327c5e8b5892927d2c7cfb.zip
dex: implement dexon application interface
Diffstat (limited to 'core')
-rw-r--r--core/tx_pool.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/tx_pool.go b/core/tx_pool.go
index eccf82e93..d79512d9c 100644
--- a/core/tx_pool.go
+++ b/core/tx_pool.go
@@ -1157,6 +1157,10 @@ func (pool *TxPool) demoteUnexecutables() {
}
}
+func (pool *TxPool) ValidateTx(tx *types.Transaction, local bool) error {
+ return pool.validateTx(tx, local)
+}
+
// addressByHeartbeat is an account address tagged with its last activity timestamp.
type addressByHeartbeat struct {
address common.Address