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
6663e5da
Commit
6663e5da
authored
Sep 25, 2018
by
Liang ZOU
Committed by
Felix Lange
Sep 25, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
all: fix various comment typos (#17748)
parent
30cd5c18
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
10 additions
and
10 deletions
+10
-10
instructions.go
core/vm/instructions.go
+1
-1
memory.go
core/vm/memory.go
+1
-1
num.h
crypto/secp256k1/libsecp256k1/src/num.h
+1
-1
api.go
internal/ethapi/api.go
+1
-1
web3.js
internal/jsre/deps/web3.js
+2
-2
unconfirmed.go
miner/unconfirmed.go
+1
-1
database_test.go
p2p/discv5/database_test.go
+1
-1
nodedb_test.go
p2p/enode/nodedb_test.go
+1
-1
api.go
signer/core/api.go
+1
-1
No files found.
core/vm/instructions.go
View file @
6663e5da
...
...
@@ -727,7 +727,7 @@ func opCreate2(pc *uint64, interpreter *EVMInterpreter, contract *Contract, memo
}
func
opCall
(
pc
*
uint64
,
interpreter
*
EVMInterpreter
,
contract
*
Contract
,
memory
*
Memory
,
stack
*
Stack
)
([]
byte
,
error
)
{
// Pop gas. The actual gas in in
in
terpreter.evm.callGasTemp.
// Pop gas. The actual gas in interpreter.evm.callGasTemp.
interpreter
.
intPool
.
put
(
stack
.
pop
())
gas
:=
interpreter
.
evm
.
callGasTemp
// Pop other call parameters.
...
...
core/vm/memory.go
View file @
6663e5da
...
...
@@ -29,7 +29,7 @@ type Memory struct {
lastGasCost
uint64
}
// NewMemory returns a new memory m
emory m
odel.
// NewMemory returns a new memory model.
func
NewMemory
()
*
Memory
{
return
&
Memory
{}
}
...
...
crypto/secp256k1/libsecp256k1/src/num.h
View file @
6663e5da
...
...
@@ -54,7 +54,7 @@ static void secp256k1_num_mul(secp256k1_num *r, const secp256k1_num *a, const se
even if r was negative. */
static
void
secp256k1_num_mod
(
secp256k1_num
*
r
,
const
secp256k1_num
*
m
);
/** Right-shift the passed number by bits
bits
. */
/** Right-shift the passed number by bits. */
static
void
secp256k1_num_shift
(
secp256k1_num
*
r
,
int
bits
);
/** Check whether a number is zero. */
...
...
internal/ethapi/api.go
View file @
6663e5da
...
...
@@ -449,7 +449,7 @@ func (s *PrivateAccountAPI) Sign(ctx context.Context, data hexutil.Bytes, addr c
// addr = ecrecover(hash, signature)
//
// Note, the signature must conform to the secp256k1 curve R, S and V values, where
// the V value must be
be
27 or 28 for legacy reasons.
// the V value must be 27 or 28 for legacy reasons.
//
// https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_ecRecover
func
(
s
*
PrivateAccountAPI
)
EcRecover
(
ctx
context
.
Context
,
data
,
sig
hexutil
.
Bytes
)
(
common
.
Address
,
error
)
{
...
...
internal/jsre/deps/web3.js
View file @
6663e5da
...
...
@@ -1021,7 +1021,7 @@ var formatOutputInt = function (param) {
var
value
=
param
.
staticPart
()
||
"0"
;
// check if it's negative number
// it i
t i
s, return two's complement
// it is, return two's complement
if
(
signedIsNegative
(
value
))
{
return
new
BigNumber
(
value
,
16
).
minus
(
new
BigNumber
(
'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'
,
16
)).
minus
(
1
);
}
...
...
@@ -2250,7 +2250,7 @@ var isAddress = function (address) {
// check if it has the basic requirements of an address
return
false
;
}
else
if
(
/^
(
0x
)?[
0-9a-f
]{40}
$/
.
test
(
address
)
||
/^
(
0x
)?[
0-9A-F
]{40}
$/
.
test
(
address
))
{
// If it's all small caps or all
all
caps, return true
// If it's all small caps or all caps, return true
return
true
;
}
else
{
// Otherwise check each case
...
...
miner/unconfirmed.go
View file @
6663e5da
...
...
@@ -43,7 +43,7 @@ type unconfirmedBlock struct {
}
// unconfirmedBlocks implements a data structure to maintain locally mined blocks
// have
have
not yet reached enough maturity to guarantee chain inclusion. It is
// have not yet reached enough maturity to guarantee chain inclusion. It is
// used by the miner to provide logs to the user when a previously mined block
// has a high enough guarantee to not be reorged out of the canonical chain.
type
unconfirmedBlocks
struct
{
...
...
p2p/discv5/database_test.go
View file @
6663e5da
...
...
@@ -173,7 +173,7 @@ var nodeDBSeedQueryNodes = []struct {
),
pong
:
time
.
Now
()
.
Add
(
-
3
*
time
.
Hour
),
},
// This one shouldn't be in
in
the result set because its
// This one shouldn't be in the result set because its
// nodeID is the local node's ID.
{
node
:
NewNode
(
...
...
p2p/enode/nodedb_test.go
View file @
6663e5da
...
...
@@ -171,7 +171,7 @@ var nodeDBSeedQueryNodes = []struct {
),
pong
:
time
.
Now
()
.
Add
(
-
3
*
time
.
Hour
),
},
// This one shouldn't be in
in
the result set because its
// This one shouldn't be in the result set because its
// nodeID is the local node's ID.
{
node
:
NewV4
(
...
...
signer/core/api.go
View file @
6663e5da
...
...
@@ -411,7 +411,7 @@ func (api *SignerAPI) Sign(ctx context.Context, addr common.MixedcaseAddress, da
// addr = ecrecover(hash, signature)
//
// Note, the signature must conform to the secp256k1 curve R, S and V values, where
// the V value must be
be
27 or 28 for legacy reasons.
// the V value must be 27 or 28 for legacy reasons.
//
// https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_ecRecover
func
(
api
*
SignerAPI
)
EcRecover
(
ctx
context
.
Context
,
data
,
sig
hexutil
.
Bytes
)
(
common
.
Address
,
error
)
{
...
...
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