diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2016-05-23 20:17:46 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2016-05-23 20:17:46 +0800 |
commit | 7f515b0e88d864c8ef272c16ea51a1f17e3472d1 (patch) | |
tree | 45aa901ac6c44596859cf1c5731f5592a607d7cc /eth/backend.go | |
parent | b4dd3209b29870d58f5ba60831005ccdd9ea0f79 (diff) | |
parent | 64a6c2c1b6c81fddccc7d3d728b7a05c5814124b (diff) | |
download | dexon-7f515b0e88d864c8ef272c16ea51a1f17e3472d1.tar dexon-7f515b0e88d864c8ef272c16ea51a1f17e3472d1.tar.gz dexon-7f515b0e88d864c8ef272c16ea51a1f17e3472d1.tar.bz2 dexon-7f515b0e88d864c8ef272c16ea51a1f17e3472d1.tar.lz dexon-7f515b0e88d864c8ef272c16ea51a1f17e3472d1.tar.xz dexon-7f515b0e88d864c8ef272c16ea51a1f17e3472d1.tar.zst dexon-7f515b0e88d864c8ef272c16ea51a1f17e3472d1.zip |
Merge pull request #2564 from bas-vk/submit-tx
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", |