aboutsummaryrefslogtreecommitdiffstats
path: root/internal/ethapi
diff options
context:
space:
mode:
authorBas van Kervel <bas@ethdev.com>2016-07-15 16:43:32 +0800
committerBas van Kervel <bas@ethdev.com>2016-07-22 19:12:14 +0800
commit4ee00b230931b054576606ead90c56d8c984fc38 (patch)
tree0cf614825eba881c9976fc6284b35cc3831e213f /internal/ethapi
parentfb81bc32912e61ae83cd6962172c47c011f979ac (diff)
downloadgo-tangerine-4ee00b230931b054576606ead90c56d8c984fc38.tar.gz
go-tangerine-4ee00b230931b054576606ead90c56d8c984fc38.tar.zst
go-tangerine-4ee00b230931b054576606ead90c56d8c984fc38.zip
eth/api: rename signAndSendTransaction to sendTransaction
Diffstat (limited to 'internal/ethapi')
-rw-r--r--internal/ethapi/api.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go
index f604a0ef2..88bacc45b 100644
--- a/internal/ethapi/api.go
+++ b/internal/ethapi/api.go
@@ -303,10 +303,10 @@ func (s *PrivateAccountAPI) LockAccount(addr common.Address) bool {
return s.am.Lock(addr) == nil
}
-// SignAndSendTransaction will create a transaction from the given arguments and
+// SendTransaction will create a transaction from the given arguments and
// tries to sign it with the key associated with args.To. If the given passwd isn't
// able to decrypt the key it fails.
-func (s *PrivateAccountAPI) SignAndSendTransaction(ctx context.Context, args SendTxArgs, passwd string) (common.Hash, error) {
+func (s *PrivateAccountAPI) SendTransaction(ctx context.Context, args SendTxArgs, passwd string) (common.Hash, error) {
var err error
args, err = prepareSendTxArgs(ctx, args, s.b)
if err != nil {
@@ -336,6 +336,12 @@ func (s *PrivateAccountAPI) SignAndSendTransaction(ctx context.Context, args Sen
return submitTransaction(ctx, s.b, tx, signature)
}
+// SignAndSendTransaction was renamed to SendTransaction. This method is deprecated
+// and will be removed in the future. It primary goal is to give clients time to update.
+func (s *PrivateAccountAPI) SignAndSendTransaction(ctx context.Context, args SendTxArgs, passwd string) (common.Hash, error) {
+ return s.SendTransaction(ctx, args, passwd)
+}
+
// PublicBlockChainAPI provides an API to access the Ethereum blockchain.
// It offers only methods that operate on public data that is freely available to anyone.
type PublicBlockChainAPI struct {