forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ethereum#105 from status-im/fix/blob_tx_dummy_fix
Add a dummy BlobTxType=0x3 implementation until go-ethereum rebased
- Loading branch information
1 parent
adb7c40
commit 88568a4
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package types | ||
|
||
import ( | ||
"math/big" | ||
"github.com/ethereum/go-ethereum/common" | ||
) | ||
|
||
type DummyBlobTx struct { | ||
} | ||
|
||
// accessors for innerTx. | ||
func (tx *DummyBlobTx) txType() byte { return BlobTxType } | ||
func (tx *DummyBlobTx) chainID() *big.Int { return nil } | ||
func (tx *DummyBlobTx) accessList() AccessList { return AccessList{} } | ||
func (tx *DummyBlobTx) data() []byte { return nil } | ||
func (tx *DummyBlobTx) gas() uint64 { return 0 } | ||
func (tx *DummyBlobTx) gasFeeCap() *big.Int { return nil } | ||
func (tx *DummyBlobTx) gasTipCap() *big.Int { return nil } | ||
func (tx *DummyBlobTx) gasPrice() *big.Int { return nil } | ||
func (tx *DummyBlobTx) value() *big.Int { return nil } | ||
func (tx *DummyBlobTx) nonce() uint64 { return 0 } | ||
func (tx *DummyBlobTx) to() *common.Address { return nil } | ||
func (tx *DummyBlobTx) isSystemTx() bool { return false } | ||
func (tx *DummyBlobTx) copy() TxData { return nil } | ||
func (tx *DummyBlobTx) effectiveGasPrice(dst *big.Int, baseFee *big.Int) *big.Int { return nil } | ||
func (tx *DummyBlobTx) isFake() bool { return true } | ||
func (tx *DummyBlobTx) rawSignatureValues() (v, r, s *big.Int) { return nil, nil, nil } | ||
func (tx *DummyBlobTx) setSignatureValues(chainID, v, r, s *big.Int) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters