Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
4ee00b23
Commit
4ee00b23
authored
Jul 15, 2016
by
Bas van Kervel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eth/api: rename signAndSendTransaction to sendTransaction
parent
fb81bc32
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
api.go
internal/ethapi/api.go
+8
-2
web3ext.go
internal/web3ext/web3ext.go
+2
-2
No files found.
internal/ethapi/api.go
View file @
4ee00b23
...
@@ -303,10 +303,10 @@ func (s *PrivateAccountAPI) LockAccount(addr common.Address) bool {
...
@@ -303,10 +303,10 @@ func (s *PrivateAccountAPI) LockAccount(addr common.Address) bool {
return
s
.
am
.
Lock
(
addr
)
==
nil
return
s
.
am
.
Lock
(
addr
)
==
nil
}
}
// S
ignAndS
endTransaction 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
// tries to sign it with the key associated with args.To. If the given passwd isn't
// able to decrypt the key it fails.
// able to decrypt the key it fails.
func
(
s
*
PrivateAccountAPI
)
S
ignAndS
endTransaction
(
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
var
err
error
args
,
err
=
prepareSendTxArgs
(
ctx
,
args
,
s
.
b
)
args
,
err
=
prepareSendTxArgs
(
ctx
,
args
,
s
.
b
)
if
err
!=
nil
{
if
err
!=
nil
{
...
@@ -336,6 +336,12 @@ func (s *PrivateAccountAPI) SignAndSendTransaction(ctx context.Context, args Sen
...
@@ -336,6 +336,12 @@ func (s *PrivateAccountAPI) SignAndSendTransaction(ctx context.Context, args Sen
return
submitTransaction
(
ctx
,
s
.
b
,
tx
,
signature
)
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.
// PublicBlockChainAPI provides an API to access the Ethereum blockchain.
// It offers only methods that operate on public data that is freely available to anyone.
// It offers only methods that operate on public data that is freely available to anyone.
type
PublicBlockChainAPI
struct
{
type
PublicBlockChainAPI
struct
{
...
...
internal/web3ext/web3ext.go
View file @
4ee00b23
...
@@ -418,8 +418,8 @@ web3._extend({
...
@@ -418,8 +418,8 @@ web3._extend({
params: 2
params: 2
}),
}),
new web3._extend.Method({
new web3._extend.Method({
name: 's
ignAndS
endTransaction',
name: 'sendTransaction',
call: 'personal_s
ignAndS
endTransaction',
call: 'personal_sendTransaction',
params: 2,
params: 2,
inputFormatter: [web3._extend.formatters.inputTransactionFormatter, null]
inputFormatter: [web3._extend.formatters.inputTransactionFormatter, null]
})
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment