chao
e38a33b2f2
fix nil pointer crash when counting one bit in onNewView
5 years ago
Leo Chen
9582d962aa
[genesis] remove old genesis accounts
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Eugene Kim
1822966e9f
Add examples for using TestLogRedirector
...
Suggested-by: @mikedoan
5 years ago
Eugene Kim
37b47f2ceb
Add unit tests for TestLogRedirector
5 years ago
Eugene Kim
df410425ea
Replace bare *testing.T with a mockable interface
5 years ago
Eugene Kim
8d2ce0011a
Add TestLogRedirector
...
TestLogRedirector is a log15-compatible log handler that logs to the
testing object. It is useful when debugging, because it surfaces
application log messages – such as ones emitted by the SUT – which are
otherwise discarded and not displayed during testing.
Typical usage:
func TestMyFunc(t *testing.T) {
l := utils.GetLogInstance()
lrd := NewTestLogRedirector(l, t)
defer lrd.Close()
// Everything sent to the logger l will be printed onto the test log,
// until lrd.Close() is called at the end of the function.
// Contexts are formatted using the "%#v" format specifier.
l.Debug("hello", "audience", "world")
// The above prints: hello, audience="world"
}
5 years ago
Rongjian Lan
9a749e487e
update core code to use swapped BLS sig
5 years ago
Leo Chen
d7838e253e
[foundational] add account for FN:185
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
d8c1265db4
[foundational] add account for FN:34
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
chao
9fb035901b
add 2f+1 signatures checking
5 years ago
Rongjian Lan
2814a321bd
Add utils for bech32 format address
6 years ago
Leo Chen
e5d73a2f3d
[foundational] update account for FN:186
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
ad87213a79
[foundational] add account for FN:198
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
d9ef724acf
[foundational] add account for FN:186,137
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
bf2d8ee16b
[foundational] add account for FN:180-182
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
27c9b4e2b2
[foundational] add account for FN:49
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
847f25bf14
[foundational] add account for FN:30-33
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
263492fdd6
[foundational] add account for FN:138
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
4c5542348d
[foundational] add account for FN:29
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
3cac449a8c
[foundational] add account for FN:139,185,188
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
7315545289
[foundational] add account for FN:179
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
5b03829299
[foundational] update account for FN:190
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Minh Doan
f08044a69f
make the mem profiling working
6 years ago
Minh Doan
e38a01b615
add util for get port from base and diff
6 years ago
Leo Chen
2b5fa476bb
[consensus] increase timeout for consensus to bootstrap
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
3235fbae2a
[foundational] add FN:47,48,96,97,145-147,194-196
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Minh Doan
311869be33
Change transaction_signing logic. Add ShardID field in signing.
6 years ago
Leo Chen
9477bc1fc5
[foundational] add address of FN:193
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
9cc0baea6d
[foundational] add address of FN:192
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
5fd94b3066
[foundational] add address of FN:46
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
89e454d403
[foundational] add address of FN:45
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
8ea2093cbd
[foundational] add address of FN:191
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
a4812716d1
[foundational] add address of FN:95
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
f103fd7cd3
[foundational] add address of FN:94
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
f0fbd23d57
[foundational] add address of FN:144
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Eugene Kim
1063f8eed9
Add FN account index 44
6 years ago
Leo Chen
31d92c35c9
[foundational] add account address of 43, 143
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
96e6973276
[foundational] add account address 93
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
4e4ede9a65
[foundational] add account address 142
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
4bd4d38e3b
[foundational] update account address for 92
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Eugene Kim
35787cf4c1
Revert Leo's key; it's added in #893
6 years ago
Eugene Kim
7c0cfe5e29
While I'm here add mine and Leo's as well
6 years ago
Leo Chen
231251f1f0
[foundational] add a foundational node for Leo
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
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