Closed blukat29 closed 2 months ago
[x] Block sync
td
from DB, which leads to nil point error. But easily recoverable by rewinding few blocks using --start-block-num
.[x] Metrics
[x] RPC serve
Test setup
// In EN1 shell terminal
./ken attach klay.ipc
debug_setHead
or --start-block-num
node type \ args | 0x19c4e01 | 0x19c4e01, true | 0x9a21800 | 0x9a21801 | 0x9a21801, true |
---|---|---|---|---|---|
Full EN | mtn | o | o | mtn | o |
Full EN with upstream | o | o | o | o | o |
Pruned EN | mtn | o | o | mtn | o |
Pruned EN with upstream | o | o | o | o | o |
Archive EN | o | o | o | o | o |
missing trie node
erroraccumulated reward not stored
errorRandom block tests: https://gist.github.com/ian0371/96542fc1b21a512617df3254ba4f6b54
function check(txhash) {
console.log(kaia.getTransaction(txhash).type);
console.log(kaia.getTransaction(txhash).from);
console.log(kaia.recoverFromTransaction(eth.getRawTransaction(txhash), 'latest'))
}
// run on Kairos
check('0x7e3c5bdb4ee3974a6af2b50affa3f1d36d1ed56c3dd32f34287d8fbceca959c8') // type 0
check('0xb66a08753f0499f70165dce420a609dcf8e40fc801ecf4b1f3f3ef9c2deff55e') // type 2
check('0x17c667d2559c7477c5e568ce67e435eabf6eafc8511eee6166329ba89ea73363') // type 8
v1.0.1
> check('0x7e3c5bdb4ee3974a6af2b50affa3f1d36d1ed56c3dd32f34287d8fbceca959c8') // type 0
TxTypeLegacyTransaction
0x7f0546832758f61410e81a94d7a07d55b1dfd278
Error: should not be called by a legacy transaction
at web3.js:6812:9(39)
at send (web3.js:5223:62(29))
at check (<eval>:4:42(28))
at <eval>:1:6(2)
> check('0xb66a08753f0499f70165dce420a609dcf8e40fc801ecf4b1f3f3ef9c2deff55e') // type 2
TxTypeEthereumDynamicFee
0x7f0546832758f61410e81a94d7a07d55b1dfd278
Error: should not be called by a legacy transaction
at web3.js:6812:9(39)
at send (web3.js:5223:62(29))
at check (<eval>:4:42(28))
at <eval>:1:6(2)
> check('0x17c667d2559c7477c5e568ce67e435eabf6eafc8511eee6166329ba89ea73363') // type 8
TxTypeValueTransfer
0x7f0546832758f61410e81a94d7a07d55b1dfd278
0x7f0546832758f61410e81a94d7a07d55b1dfd278
> check('0x7e3c5bdb4ee3974a6af2b50affa3f1d36d1ed56c3dd32f34287d8fbceca959c8') // type 0
TxTypeLegacyTransaction
0x7f0546832758f61410e81a94d7a07d55b1dfd278
0x7f0546832758f61410e81a94d7a07d55b1dfd278
> check('0xb66a08753f0499f70165dce420a609dcf8e40fc801ecf4b1f3f3ef9c2deff55e') // type 2
TxTypeEthereumDynamicFee
0x7f0546832758f61410e81a94d7a07d55b1dfd278
0x7f0546832758f61410e81a94d7a07d55b1dfd278
> check('0x17c667d2559c7477c5e568ce67e435eabf6eafc8511eee6166329ba89ea73363') // type 8
TxTypeValueTransfer
0x7f0546832758f61410e81a94d7a07d55b1dfd278
0x7f0546832758f61410e81a94d7a07d55b1dfd278
showPartial
flag works as expecteddebug_setHead
or--start-block-num