Commit d09b137b authored by linj's avatar linj Committed by vipwzw

delete not used code

parent 4047ed30
......@@ -73,19 +73,3 @@ func (u *Unfreeze) ExecLocal_Terminate(payload *uf.UnfreezeTerminate, tx *types.
return u.execLocal(receiptData, index)
}
func localKeys(res *uf.ReceiptUnfreeze, value []byte) (kvs []*types.KeyValue) {
kvs = append(kvs, &types.KeyValue{Key: initKey(res.Current.Initiator), Value: value})
kvs = append(kvs, &types.KeyValue{Key: beneficiaryKey(res.Current.Beneficiary), Value: value})
return
}
func (u *Unfreeze) saveUnfreezeCreate(res *uf.ReceiptUnfreeze) (kvs []*types.KeyValue) {
kvs = localKeys(res, []byte(res.Current.UnfreezeID))
return
}
func (u *Unfreeze) rollbackUnfreezeCreate(res *uf.ReceiptUnfreeze) (kvs []*types.KeyValue) {
kvs = localKeys(res, nil)
return
}
......@@ -13,18 +13,9 @@ import (
var (
id = "mavl-" + pty.UnfreezeX + "-"
initLocal = "LODB-" + pty.UnfreezeX + "-init-"
beneficiaryLocal = "LODB-" + pty.UnfreezeX + "-beneficiary-"
)
func unfreezeID(txHash []byte) []byte {
return []byte(fmt.Sprintf("%s%s", id, hex.EncodeToString(txHash)))
}
func initKey(init string) []byte {
return []byte(fmt.Sprintf("%s%s", initLocal, init))
}
func beneficiaryKey(beneficiary string) []byte {
return []byte(fmt.Sprintf("%s%s", beneficiaryLocal, beneficiary))
}
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