aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-11-17 21:16:49 +0800
committerGitHub <noreply@github.com>2017-11-17 21:16:49 +0800
commite39ca5e597f5b8fbe95665f3c0f098552a8af60b (patch)
treef3c6b0323b60e7d461e0c5f5ef762837fb501797
parentc8b7ea1c2ea419b81817d053a89860f3649ea8ff (diff)
parentc7b0abf86bf3039a87b5b5ae88635326a762cf31 (diff)
downloadgo-tangerine-e39ca5e597f5b8fbe95665f3c0f098552a8af60b.tar
go-tangerine-e39ca5e597f5b8fbe95665f3c0f098552a8af60b.tar.gz
go-tangerine-e39ca5e597f5b8fbe95665f3c0f098552a8af60b.tar.bz2
go-tangerine-e39ca5e597f5b8fbe95665f3c0f098552a8af60b.tar.lz
go-tangerine-e39ca5e597f5b8fbe95665f3c0f098552a8af60b.tar.xz
go-tangerine-e39ca5e597f5b8fbe95665f3c0f098552a8af60b.tar.zst
go-tangerine-e39ca5e597f5b8fbe95665f3c0f098552a8af60b.zip
Merge pull request #15506 from tsarpaul/master
internal/ethapi: changed output in txpool.inspect
-rw-r--r--internal/ethapi/api.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go
index cf15d1c71..025f42617 100644
--- a/internal/ethapi/api.go
+++ b/internal/ethapi/api.go
@@ -151,9 +151,9 @@ func (s *PublicTxPoolAPI) Inspect() map[string]map[string]map[string]string {
// Define a formatter to flatten a transaction into a string
var format = func(tx *types.Transaction) string {
if to := tx.To(); to != nil {
- return fmt.Sprintf("%s: %v wei + %v × %v gas", tx.To().Hex(), tx.Value(), tx.Gas(), tx.GasPrice())
+ return fmt.Sprintf("%s: %v wei + %v gas × %v wei", tx.To().Hex(), tx.Value(), tx.Gas(), tx.GasPrice())
}
- return fmt.Sprintf("contract creation: %v wei + %v × %v gas", tx.Value(), tx.Gas(), tx.GasPrice())
+ return fmt.Sprintf("contract creation: %v wei + %v gas × %v wei", tx.Value(), tx.Gas(), tx.GasPrice())
}
// Flatten the pending transactions
for account, txs := range pending {