github.com/DxChainNetwork/dxc@v0.8.1-0.20220824085222-1162e304b6e7/consensus/dpos/dpos_test.go (about) 1 package dpos 2 3 import ( 4 "github.com/DxChainNetwork/dxc/common" 5 "github.com/DxChainNetwork/dxc/consensus/dpos/systemcontract" 6 "testing" 7 ) 8 9 func TestCalcSlotOfDevMappingKey(t *testing.T) { 10 addr := common.HexToAddress("0x5b38da6a701c568545dcfcb03fcb875f56beddc4") 11 slot := calcSlotOfDevMappingKey(addr) 12 t.Log(slot.String()) 13 // want: 0xb314f101a00aa0d8cc6704cc6dd1e9dd7551ec98c9df52079c192c560ba66c4a 14 } 15 16 func TestMigrateAddrBalances(t *testing.T) { 17 addrs, bals := systemcontract.InitMigrateAddrBalance() 18 t.Log(addrs) 19 t.Log(bals) 20 }