package anastore.proto;

import anastore.net.SyncMessage;

/**
 * A request for a block at a particular time.  The response message
 * is either a BlockRes or a NoSuchDatumRes.
 */
public class GetBlockReq extends SyncMessage
{
    public final long id;
    public final long timestamp;

    public GetBlockReq(long id, long timestamp)
    {
        this.id = id;
        this.timestamp = timestamp;
    }

    @Override
    public String toString()
    {
        return "GetBlockReq<id=" + id + ",timestamp=" + timestamp + ">";
    }
}
