depolymerization

wire gateway for Bitcoin/Ethereum
Log | Files | Refs | Submodules | README | LICENSE

conflict.tex (1196B)


      1 \begin{tikzpicture}[
      2         block/.style={rectangle,draw=black,fill=black!10,minimum size=7mm},
      3         conf/.style={draw=black!60!green,fill=black!60!green!10},
      4         nconf/.style={dotted},
      5         err/.style={draw=black!60!red,fill=black!60!red!10},
      6         ar/.style={-stealth}
      7     ]
      8     % Common
      9     \node[block,conf](1){};
     10     \node[block,conf,right=5mm of 1](2){$D_0$};
     11     \node[block,conf,right=5mm of 2](3){};
     12     \draw[ar] (1) -- (2);
     13     \draw[ar] (2) -- (3);
     14 
     15     % Current
     16     \node[block,conf,right=5mm of 3](4){$D_3$};
     17     \node[block,nconf,right=5mm of 4](5){};
     18     \node[block,nconf,right=5mm of 5](6){$D_1$};
     19     \draw[ar] (3) -- (4);
     20     \draw[ar] (4) -- (5);
     21     \draw[ar] (5) -- (6);
     22 
     23     % Fork
     24     \node[block,dashed,err,above=7mm of 4](4p){$D_3'$};
     25     \node[block,nconf,right=5mm of 4p](5p){$D_2$};
     26     \node[block,nconf,right=5mm of 5p](6p){};
     27     \node[block,nconf,right=5mm of 6p](7p){};
     28     \draw[ar] (3.east) -- (4p.west);
     29     \draw[ar] (4p) -- (5p);
     30     \draw[ar] (5p) -- (6p);
     31     \draw[ar] (6p) -- (7p);
     32 
     33     % Indication
     34     \node [right=5mm of 7p]{\emph{fork}};
     35     \node [right=17mm of 6]{\emph{active}};
     36 \end{tikzpicture}