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="c24" 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="840" height="336" as="geometry"/></mxCell><mxCell id="c3" value="graceEnd = min(end + graceMaxTotal, max(end, lastVoteAt) + grace); each settled transition resets graceEnd to its time + grace, up to the cap" style="text;html=1;whiteSpace=wrap;fontSize=13;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="14" y="8" width="812" height="46" as="geometry"/></mxCell><mxCell id="c4" value="&lt;b&gt;voting period&lt;/b&gt;&lt;br&gt;votes admitted and settled" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="40" y="108" width="280" height="50" as="geometry"/></mxCell><mxCell id="c5" value="&lt;b&gt;grace window&lt;/b&gt;&lt;br&gt;honest nodes admit no votes;&lt;br&gt;queued batches settle" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="320" y="108" width="350" height="50" as="geometry"/></mxCell><mxCell id="c6" value="&lt;b&gt;results&lt;/b&gt;&lt;br&gt;can be published" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="670" y="108" width="150" height="50" 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="14" y="170" as="sourcePoint"/><mxPoint x="830" y="170" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c8" 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="40" y="162" as="sourcePoint"/><mxPoint x="40" y="178" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c9" value="startTime" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="2.0" y="180" width="76" height="36" as="geometry"/></mxCell><mxCell id="c10" 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="320" y="162" as="sourcePoint"/><mxPoint x="320" y="178" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c11" value="end" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="245.0" y="180" width="150" height="36" as="geometry"/></mxCell><mxCell id="c12" 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="670" y="162" as="sourcePoint"/><mxPoint x="670" y="178" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c13" value="graceEnd" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="595.0" y="180" width="150" height="36" as="geometry"/></mxCell><mxCell id="c14" value="" style="ellipse;fillColor=#9673a6;strokeColor=#9673a6;html=1;" vertex="1" parent="1"><mxGeometry x="414" y="164" width="12" height="12" as="geometry"/></mxCell><mxCell id="c15" value="" style="ellipse;fillColor=#9673a6;strokeColor=#9673a6;html=1;" vertex="1" parent="1"><mxGeometry x="494" y="164" width="12" height="12" as="geometry"/></mxCell><mxCell id="c16" value="settled&lt;br&gt;batches" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="375" y="180" width="90" height="36" as="geometry"/></mxCell><mxCell id="c17" value="lastVoteAt" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="460" y="180" width="90" height="36" as="geometry"/></mxCell><mxCell id="c18" 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="790" y="162" as="sourcePoint"/><mxPoint x="790" y="178" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c19" value="end +&lt;br&gt;graceMaxTotal" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="730" y="192" width="110" height="36" as="geometry"/></mxCell><mxCell id="c20" value="grace" style="html=1;rounded=0;endArrow=classic;startArrow=classic;endSize=6;startSize=6;fontSize=12;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="500" y="96" as="sourcePoint"/><mxPoint x="670" y="96" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c21" value="flush: seal everything pending" style="html=1;rounded=0;endArrow=classic;startArrow=classic;endSize=6;startSize=6;fontSize=12;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="290" y="240" as="sourcePoint"/><mxPoint x="670" y="240" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c22" value="graceMaxTotal (cap)" style="html=1;rounded=0;endArrow=classic;startArrow=classic;endSize=6;startSize=6;fontSize=12;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="320" y="280" as="sourcePoint"/><mxPoint x="790" y="280" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c23" value="OP Mainnet deployment: grace 300 s by default (the organizer may choose 240&amp;ndash;600 s), graceMaxTotal 1800 s, noticeMin 60 s." style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="14" y="294" width="812" height="40" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>