Commit 4da27f86 authored by 贾浩@五瓣科技's avatar 贾浩@五瓣科技

fix

parent bcd7e288
......@@ -59,6 +59,9 @@ func (v *Validator) GetMerkleProof(address common.Address, date string) (balance
if object == nil {
return "0", nil
}
if object.Balance == "" {
object.Balance = "0"
}
bigBalance, _ := new(big.Int).SetString(object.Balance, 10)
payload := append(common.HexToAddress(object.Miner).Bytes(), common.LeftPadBytes(bigBalance.Bytes(), 32)...)
leaf := crypto.Keccak256Hash(payload)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment