kaiachain / kaia

GNU Lesser General Public License v3.0
18 stars 24 forks source link

QA for v1.0.2 #61

Closed blukat29 closed 2 months ago

blukat29 commented 2 months ago
hyeonLewis commented 2 months ago

PebbleDB support

Test setup

// In EN1 shell terminal
./ken attach klay.ipc
CLI tests ``` // kaia namespace > kaia.blockNumber 140880866 > kaia.getBlock("latest") { baseFeePerGas: "0x5d21dba00", blockScore: "0x1", extraData: ... ... transactionsRoot: "0x45d9f35127529751189011ff60dd7abbc340ebbfc9a8ab7eda4981c5ac5b8b6f", voteData: "0x" } > kaia.getTransaction("0xa208baff2ed68a6c30ca0d6576f23f7804144f6170f1793f454977deadf38de7") { accessList: [], blockHash: "0x2a2ce7b2da5f37dab9b1aaf76da811d863d12d827033c59e295872be2e3353f1", blockNumber: 140880982, ... transactionIndex: 900, type: "TxTypeEthereumDynamicFee", typeInt: 30722, value: 0 } > kaia.getBalance("0x0000000000000000000000000000000000000000", "latest") 0 // debug namespace > debug.traceTransaction("0x23c370c960fedbb20ab2f7ac170c28c618c3ff914da9cc95b8d0f65a03dae90c") { failed: false, gas: 27000, returnValue: "", structLogs: [] } // governance namespace > governance.getStakingInfo("latest") { KIRAddr: "0xdd4c8d805fc110369d3b148a6692f283ffbdccd3", PoCAddr: "0x85d82d811743b4b8f3c48f3e48a1664d1ffc2c10", blockNum: 141004800, councilNodeAddrs: ["0x6873352021fe9226884616dc6f189f289aeb0cc5", ... kifAddr: "0x85d82d811743b4b8f3c48f3e48a1664d1ffc2c10", useGini: true } // istanbul namespace > istanbul.getValidators("latest") ["0x03497f51c31fe8b402df0bde90fd5a85f87aa943", "0x0b59cae1f03534209fdb9ddf5ea65b310cd7060c", ... ] ```
ian0371 commented 2 months ago

kaia_getTotalSupply fixes

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

Random block tests: https://gist.github.com/ian0371/96542fc1b21a512617df3254ba4f6b54

yoomee1313 commented 2 months ago

Regular tests except sync test and load test

blukat29 commented 2 months ago

kaia_recoverFromTransaction fix

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