diff options
author | Bas van Kervel <bas@ethdev.com> | 2016-05-13 01:32:04 +0800 |
---|---|---|
committer | Bas van Kervel <bas@ethdev.com> | 2016-05-20 21:54:18 +0800 |
commit | 64a6c2c1b6c81fddccc7d3d728b7a05c5814124b (patch) | |
tree | 05d6c04a1c5eeb5746425b3d7e691ee071f66c0e /eth/backend.go | |
parent | e798e4fd750745cec99c5a531e42998d9a7be85e (diff) | |
download | go-tangerine-64a6c2c1b6c81fddccc7d3d728b7a05c5814124b.tar.gz go-tangerine-64a6c2c1b6c81fddccc7d3d728b7a05c5814124b.tar.zst go-tangerine-64a6c2c1b6c81fddccc7d3d728b7a05c5814124b.zip |
eth: add new RPC method (personal.) SignAndSendTransaction
Diffstat (limited to 'eth/backend.go')
-rw-r--r-- | eth/backend.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/eth/backend.go b/eth/backend.go index f43dea777..bb487650b 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -26,6 +26,7 @@ import ( "path/filepath" "regexp" "strings" + "sync" "time" "github.com/ethereum/ethash" @@ -113,6 +114,7 @@ type Ethereum struct { // Handlers txPool *core.TxPool + txMu sync.Mutex blockchain *core.BlockChain accountManager *accounts.Manager pow *ethash.Ethash @@ -293,7 +295,7 @@ func (s *Ethereum) APIs() []rpc.API { }, { Namespace: "personal", Version: "1.0", - Service: NewPrivateAccountAPI(s.accountManager), + Service: NewPrivateAccountAPI(s), Public: false, }, { Namespace: "eth", |