aboutsummaryrefslogtreecommitdiff
path: root/coreth.go
diff options
context:
space:
mode:
Diffstat (limited to 'coreth.go')
-rw-r--r--coreth.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/coreth.go b/coreth.go
index 25e9da2..c39b171 100644
--- a/coreth.go
+++ b/coreth.go
@@ -3,6 +3,7 @@ package coreth
import (
"crypto/ecdsa"
"io"
+ "math/big"
"os"
"github.com/ava-labs/coreth/consensus/dummy"
@@ -213,6 +214,11 @@ func (self *ETHChain) GetTxPool() *core.TxPool {
return self.backend.TxPool()
}
+// SetGasPrice sets the gas price on the backend
+func (self *ETHChain) SetGasPrice(newGasPrice *big.Int) {
+ self.backend.SetGasPrice(newGasPrice)
+}
+
type Key struct {
Address common.Address
PrivateKey *ecdsa.PrivateKey