forked from zingolabs/zingolib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
blazesync_diagrams.dot
112 lines (83 loc) · 3.15 KB
/
blazesync_diagrams.dot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
digraph D {
rankdir=LR;
newrank=true;
// make invisible ranks
rank1 [style=invis/* color="gray" */];
rank2 [style=invis/* color="gray" */];
rank3 [style=invis/* color="gray" */];
rank4 [style=invis/* color="gray" */];
rank5 [style=invis/* color="gray" */];
rank6 [style=invis/* color="gray" */];
rank1 -> rank2 [style=invis/* color="gray" */];
rank2 -> rank3 [style=invis/* color="gray" */]
rank3 -> rank4 [style=invis/* color="gray" */]
rank4 -> rank5 [style=invis/* color="gray" */]
rank5 -> rank6 [style=invis/* color="gray" */]
Start [shape=diamond]
Start -> FetchCompactBlocks
Start -> TrialDecryption
Start -> FetchTransparentTxIDs
Start -> UpdateNotes
Start -> UpdateWitnesses
Start -> UpdateSpends
FetchCompactBlocks [shape=rect, color="orange"]
FetchTransparentTxIDs [shape=rect]
TrialDecryption [shape=rect]
UpdateNotes [shape=rect]
FetchFullTxns [shape=rect, color="orange"]
UpdateWitnesses [shape=rect]
UpdateSpends [shape=rect]
FetchCompactBlocks -> NullifierData [color="red"]
FetchCompactBlocks -> TrialDecryption [color="red"]
FetchCompactBlocks -> NodeAndWitnessData [color="red"]
NullifierData -> UpdateSpends [color="purple", dir=both]
NodeAndWitnessData -> UpdateWitnesses [color="purple", dir=both]
UpdateNotes -> UpdateWitnesses [color="magenta"]
UpdateNotes -> UpdateSpends [color="magenta"]
TrialDecryption -> FetchFullTxns [color="magenta"]
TrialDecryption -> UpdateNotes [color="magenta"]
TrialDecryption -> WalletTxnsData [color="magenta"]
UpdateSpends -> FetchFullTxns [color="magenta"]
FetchTransparentTxIDs -> FetchFullTxns [color="magenta"]
UpdateWitnesses -> WalletTxnsData [color="magenta"]
UpdateSpends -> WalletTxnsData [color="magenta"]
FetchFullTxns -> WalletTxnsData [color="magenta"]
FetchTransparentTxIDs -> End
FetchCompactBlocks -> End
FetchFullTxns -> End
UpdateNotes -> End
UpdateSpends -> End
UpdateWitnesses -> End
TrialDecryption -> End
End [shape=diamond]
subgraph cluster_l1 {
label="Legend"
StartTask [shape=rect]
AwaitTask [shape=rect]
StartTask -> AwaitTask
c [style=invis]
d [style=invis]
c -> d [label="Send all data", color="red"]
e [style=invis]
f [style=invis]
e -> f [label="Send some data", color="magenta"]
g [style=invis]
h [style=invis]
g -> h [label="API", color="purple", dir="both"]
CallNetwork [shape=rect, color="orange"]
TokioTask [shape=rect]
ThreadSafeData [shape=oval]
}
WalletTxnsData [shape=oval; color=gray]
subgraph cluster_l2 {
label="SyncTmpData"
NodeAndWitnessData [shape=oval]
NullifierData [shape=oval]
}
{rank=same rank1 Start}
{rank=same rank2 FetchCompactBlocks FetchTransparentTxIDs}
{rank=same rank3 TrialDecryption WalletTxnsData StartTask c e g}
{rank=same rank4 UpdateNotes}
{rank=same rank5 UpdateWitnesses UpdateSpends CallNetwork TokioTask ThreadSafeData}
{rank=same rank6 End}
}