func (n *None) Query_GetDelayBeginHeight(req *types.ReqBytes) (types.Message, error) {
	if len(req.GetData()) == 0 {
		return nil, types.ErrInvalidParam
	}
	val, err := n.GetStateDB().Get(formatDelayTxKey(req.GetData()))
	if err != nil {
		eLog.Error("Query_GetDelayBeginHeight", "txHash", hex.EncodeToString(req.GetData()), "get db err", err)
		return nil, types.ErrGetStateDB
	}
	info := &ntypes.CommitDelayTxLog{}
	err = types.Decode(val, info)
	if err != nil {
		eLog.Error("Query_GetDelayBeginHeight", "txHash", hex.EncodeToString(req.GetData()), "get db err", err)
		return nil, types.ErrDecode
	}
	return &types.Int64{Data: info.DelayBeginHeight}, nil
}
Query_GetDelayBeginHeight query delay tx delay begin height
package executor
import (
	"encoding/hex"
	ntypes "github.com/33cn/chain33/system/dapp/none/types"
	"github.com/33cn/chain33/types"
)