aboutsummaryrefslogtreecommitdiffstats
path: root/light/txpool.go
diff options
context:
space:
mode:
Diffstat (limited to 'light/txpool.go')
-rw-r--r--light/txpool.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/light/txpool.go b/light/txpool.go
index 365f02d25..ecd6cfa26 100644
--- a/light/txpool.go
+++ b/light/txpool.go
@@ -365,7 +365,7 @@ func (pool *TxPool) validateTx(ctx context.Context, tx *types.Transaction) error
// Transactions can't be negative. This may never happen
// using RLP decoded transactions but may occur if you create
// a transaction using the RPC for example.
- if tx.Value().Cmp(common.Big0) < 0 {
+ if tx.Value().Sign() < 0 {
return core.ErrNegativeValue
}