Eugene Kim
1afa48ea57
Update Li's public key
...
His old keypair was generated using an old wallet (on MBP) and isn't
in the right Ethereum keystore format.
6 years ago
Eugene Kim
aad9425d93
Separate groups of 10
6 years ago
Eugene Kim
fb9a20500e
Remove misplaced blank lines
6 years ago
Leo Chen
17c2fc3126
[foundational] add more foundational node pubkeys
...
account index: 92, 141
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
98ae11f594
[foundational] add account address for foundational nodes
...
40, 41, ,42, 90, 91, 140, 190
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
chao
69cfe9b633
* add view changing logic
...
* add view change message handler
* modify view change message constructor
6 years ago
Peter Chung
b632fd277a
[logging] use GlogHandler as the base handler
6 years ago
Peter Chung
01f69f2e7a
[logging] add verbosity flag to bootnode, txgen, harmony cmd
6 years ago
Leo Chen
f520802473
[keystore] remove all private key from genesis accounts
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
6c05424ee5
[utils] add a function to ask user for passphrase
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Peter Chung
7d101692aa
[internal/utils] add EmbedFile function
...
utils.EmbedFile is a text file embed script for go:generate
to embed text files into generated golang source.
related to #830
6 years ago
Peter Chung
566c3aeb60
[wallet] embed wallet.ini into wallet binary ( #830 )
...
utilize go:generate to convert the default wallet.ini file
into go constant `defaultWalletIni` defined in
`cmd/client/wallet/generated_ini.go` which will be used when
`.hmy/wallet.ini` doesn't exist under the current filesystem.
6 years ago
Minh Doan
cc32242962
add puzzle contract
...
smart contract integrate smart contract
add payout call and fix others
fix play contract call
6 years ago
chao
994aba8b07
add minimum pbft view change structure
...
add timeout class for pbft view change
add README for PBFT process including view change protocol
6 years ago
Eugene Kim
83bd41fb93
Add GetLogger, WithCaller, and WithCallerSkip
...
They add call site information (function name, filename, line number) to
a logger.
GetLogger is intended for direct one-shot logging calls, i.e.
“GetLogger().Debug(...)”.
Wrap reusable loggers with WithCaller():
logger := utils.GetLogInstance().New(/* ... */)
/* ... */
utils.WithCaller(logger).Debug(/* ... */)
Or use a local getLogger() idiom:
logger := utils.GetLogInstance().New(/* ... */)
getLogger := func() log.Logger {
return WithCallerSkip(logger, 1)
}
/* ... */
getLogger().Debug(/* ... */)
Since getLogger() uses closure, logger can later be augmented with
“logger = logger.New(/* ... */)” syntax.
6 years ago
u5surf
4d09b63dff
[lint] fix gofmt #708
6 years ago
Leo Chen
875d5f02f9
[utils] add a wallet profile read function
...
test coverage before: 78.5%
test coverage after: 78.7%
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Rongjian Lan
6044b76068
migrate bls identity from address to public key
...
Use shard info for committee pub keys rather than pong message
Make code backward compatible
6 years ago
Rongjian Lan
f72cb43b83
make 1+3 sharded network work locally with deploy.sh
6 years ago
Leo Chen
313ddac6ca
[utils] move GetAddressHex to utils module
...
* add test cases for GetAddressHex
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
957fdf0eac
[wallet] support rpc server using environment variable
...
use an external environment variable to specify the rpc servers
of the wallet. this will greatly simplify the testing.
example of the environment variable:
export RpcNodes="127.0.0.1:8989,192.168.129.1:5555"
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Minh Doan
1a15ad0ed4
Fix comments server code & rebase.
6 years ago
Rongjian Lan
8077352426
Bump up genesis beaconchain size to 50
6 years ago
Rongjian Lan
1dbb1a9250
remove validator IDs
6 years ago
Minh Doan
5aa72168a8
add demo contract to genesis
6 years ago
Minh Doan
4dac52c33d
add constants for demo accounts
6 years ago
Rongjian Lan
c54e225dc4
Setup initial shard state
6 years ago
Leo Chen
5a9b16ba0b
#540 filter out private IP
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Rongjian Lan
2c1b0d5562
setup initial beacon chain keys
6 years ago
animeshg
e5a7c1ba49
Add tests in drand, group & backoff
6 years ago
Rongjian Lan
eb0af9c05d
Use hard coded account for staking
6 years ago
Rongjian Lan
72f75935e7
Make the first staking transaction working on the contract
6 years ago
Leo Chen
f3ffc65401
[cleanup] remove libp2p unicast support
...
fix test cases after remove libp2p unicast
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Minh Doan
6c8f0f4b02
add comments
6 years ago
Minh Doan
3bf27e3047
set up staking key temporarily
6 years ago
Minh Doan
2df79e3bec
modify genesis string
6 years ago
Minh Doan
269e4f6119
fix private key constant
6 years ago
Minh Doan
93c94c4bd9
generate fake deploy contract
6 years ago
Leo Chen
a55b4514dd
use gossip for all consensus messages
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Eugene Kim
02abf88079
Move connection logger to internal/utils
...
Suggested-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
c6c7f9c46d
add comment for testing bootnode
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
94be80920d
load both pub/priv p2p keys
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Minh Doan
55b6f3be2c
add more address
6 years ago
Minh Doan
e4fe327426
move constants to contract/constants.go to avoid cycle import
6 years ago
Leo Chen
da0d9bc227
use a global BootNodes variable
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Rongjian Lan
d8c46c61d2
Say goodbye to Schnorr sig and kyber package and mark BLS done
6 years ago
Leo Chen
ad9c68a4db
add an AddrList type for a list of multiaddress
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
eb6e2f569b
add private key save and load functions
...
add test functions
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
f814a0b630
change the interface not to use pointer
...
this will save some conversion of calling function
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
a84b645cd8
merge load/save test functions
...
The GenKeyP2P actually generated different keys on different hosts,
given the same seeds. So we can't hardcode the generated string based on
the test running the local host.
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago