arnaucube
arnaucube/davinci-paperPublic Self-hosted repository
davinci-paper/v2/figures/grace-window.drawio
v2/figures/grace-window.drawioRaw
1<mxfile host="drawio"><diagram name="grace-window" id="grace-window"><mxGraphModel dx="1200" dy="800" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="1100" pageHeight="850" math="0" shadow="0"><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="c3" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=none;strokeColor=#000000;fontFamily=Courier New;verticalAlign=top;align=center;spacingTop=4;spacingLeft=6;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="0" y="0" width="1020" height="290" as="geometry"/></mxCell><mxCell id="c4" value="&lt;b&gt;voting period&lt;/b&gt;: votes admitted and settled" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="60" y="96" width="360" height="40" as="geometry"/></mxCell><mxCell id="c5" value="&lt;b&gt;grace window&lt;/b&gt;: no new votes; queued batches settle" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="420" y="96" width="420" height="40" as="geometry"/></mxCell><mxCell id="c6" value="&lt;b&gt;results&lt;/b&gt; can be&lt;br&gt;requested and published" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="840" y="96" width="140" height="40" as="geometry"/></mxCell><mxCell id="c7" value="" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="20" y="150" as="sourcePoint"/><mxPoint x="1005" y="150" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c8" value="time" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="965" y="128" width="50" height="18" as="geometry"/></mxCell><mxCell id="c9" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="60" y="142" as="sourcePoint"/><mxPoint x="60" y="158" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c10" value="startTime" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="-10" y="160" width="140" height="34" as="geometry"/></mxCell><mxCell id="c11" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="420" y="142" as="sourcePoint"/><mxPoint x="420" y="158" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c12" value="end =&lt;br&gt;startTime + duration" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="350" y="160" width="140" height="34" as="geometry"/></mxCell><mxCell id="c13" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="840" y="142" as="sourcePoint"/><mxPoint x="840" y="158" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c14" value="graceEnd" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="770" y="160" width="140" height="34" as="geometry"/></mxCell><mxCell id="c15" value="" style="ellipse;fillColor=#9673a6;strokeColor=#9673a6;html=1;" vertex="1" parent="1"><mxGeometry x="535" y="145" width="10" height="10" as="geometry"/></mxCell><mxCell id="c16" value="" style="ellipse;fillColor=#9673a6;strokeColor=#9673a6;html=1;" vertex="1" parent="1"><mxGeometry x="635" y="145" width="10" height="10" as="geometry"/></mxCell><mxCell id="c17" value="settled&lt;br&gt;transitions" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="490" y="160" width="100" height="34" as="geometry"/></mxCell><mxCell id="c18" value="lastVoteAt" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="595" y="160" width="90" height="34" as="geometry"/></mxCell><mxCell id="c19" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="960" y="142" as="sourcePoint"/><mxPoint x="960" y="158" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c20" value="end +&lt;br&gt;graceMaxTotal" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="905" y="160" width="110" height="34" as="geometry"/></mxCell><mxCell id="c21" value="grace" style="html=1;rounded=0;endArrow=classic;startArrow=classic;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="640" y="86" as="sourcePoint"/><mxPoint x="840" y="86" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c22" value="flush: seal everything pending" style="html=1;rounded=0;endArrow=classic;startArrow=classic;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="380" y="210" as="sourcePoint"/><mxPoint x="840" y="210" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c23" value="graceMaxTotal (cap)" style="html=1;rounded=0;endArrow=classic;startArrow=classic;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="420" y="246" as="sourcePoint"/><mxPoint x="960" y="246" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c24" value="graceEnd = min(end + graceMaxTotal, max(end, lastVoteAt) + grace); every settled transition moves lastVoteAt and pushes graceEnd forward" style="text;html=1;whiteSpace=wrap;fontSize=10;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="20" y="8" width="960" height="30" as="geometry"/></mxCell><mxCell id="c25" value="OP Mainnet deployment: grace 300 s by default (organizer may choose 240-600 s), graceMaxTotal 1800 s, noticeMin 60 s" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="20" y="258" width="960" height="24" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>