From c50faa1845187731cf1be46b849ee8f5f364624f Mon Sep 17 00:00:00 2001 From: slumber1122 Date: Thu, 19 Oct 2017 13:15:52 +0800 Subject: [PATCH] core: receipt status is wrong --- core/types/receipt.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/types/receipt.go b/core/types/receipt.go index bc3c996b4f..19d469c8e0 100644 --- a/core/types/receipt.go +++ b/core/types/receipt.go @@ -86,9 +86,9 @@ type receiptStorageRLP struct { func NewReceipt(root []byte, failed bool, cumulativeGasUsed *big.Int) *Receipt { r := &Receipt{PostState: common.CopyBytes(root), CumulativeGasUsed: new(big.Int).Set(cumulativeGasUsed)} if failed { - r.Status = ReceiptStatusFailed - } else { r.Status = ReceiptStatusSuccessful + } else { + r.Status = ReceiptStatusFailed } return r }