aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/transaction.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-10-27 23:52:58 +0800
committerobscuren <geffobscura@gmail.com>2014-10-27 23:52:58 +0800
commit69e745c537e442d4086986b02c01741d2a314cf1 (patch)
treefde28b31fd7ae1eaf8017f300b9d60fece782e5f /ethchain/transaction.go
parent003280888d54ddcb7d776f549633d280edee1c8c (diff)
downloadgo-tangerine-69e745c537e442d4086986b02c01741d2a314cf1.tar
go-tangerine-69e745c537e442d4086986b02c01741d2a314cf1.tar.gz
go-tangerine-69e745c537e442d4086986b02c01741d2a314cf1.tar.bz2
go-tangerine-69e745c537e442d4086986b02c01741d2a314cf1.tar.lz
go-tangerine-69e745c537e442d4086986b02c01741d2a314cf1.tar.xz
go-tangerine-69e745c537e442d4086986b02c01741d2a314cf1.tar.zst
go-tangerine-69e745c537e442d4086986b02c01741d2a314cf1.zip
Return erroneous txs (so we can remove them from the pool)
Diffstat (limited to 'ethchain/transaction.go')
-rw-r--r--ethchain/transaction.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethchain/transaction.go b/ethchain/transaction.go
index b0743097d..abf2e37ac 100644
--- a/ethchain/transaction.go
+++ b/ethchain/transaction.go
@@ -40,7 +40,7 @@ func NewContractCreationTx(value, gas, gasPrice *big.Int, script []byte) *Transa
}
func NewTransactionMessage(to []byte, value, gas, gasPrice *big.Int, data []byte) *Transaction {
- return &Transaction{Recipient: to, Value: value, GasPrice: gasPrice, Gas: gas, Data: data}
+ return &Transaction{Recipient: to, Value: value, GasPrice: gasPrice, Gas: gas, Data: data, contractCreation: IsContractAddr(to)}
}
func NewTransactionFromBytes(data []byte) *Transaction {