mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-29 07:25:51 +00:00
deploy: 4ec11e692b
This commit is contained in:
@@ -152,176 +152,149 @@ $(function() {
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> {</div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  JLOG(<a class="code" href="classripple_1_1OpenLedger.html#a02d323b2b1ad7d9f713c3d3bb6fea649">j_</a>.<a class="code" href="classbeast_1_1Journal.html#abbe082bd27ca0f1d1365af2824e4f85b">trace</a>()) << <span class="stringliteral">"accept ledger "</span> << ledger->seq() << <span class="stringliteral">" "</span> << suffix;</div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keyword">auto</span> next = <a class="code" href="classripple_1_1OpenLedger.html#a778ee55e7d299457863870e12efdd4b6">create</a>(rules, ledger);</div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/map.html">std::map<uint256, bool></a> shouldRecover;</div>
|
||||
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keywordflow">if</span> (retriesFirst)</div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  {</div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& tx : retries)</div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  {</div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keyword">auto</span> <span class="keyword">const</span> txID = tx.second->getTransactionID();</div>
|
||||
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  shouldRecover[txID] = app.<a class="code" href="classripple_1_1Application.html#ab7873738f31780e68f0d12d87fc35356">getHashRouter</a>().<a class="code" href="classripple_1_1HashRouter.html#a6af0b6bd7155e389fdd4f08b17d87e47">shouldRecover</a>(txID);</div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  }</div>
|
||||
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="comment">// Handle disputed tx, outside lock</span></div>
|
||||
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keyword">using</span> <a class="code" href="classripple_1_1OpenLedger.html#a88144aac5696b3f33eccfaaed0aeb8ba">empty</a> = <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<std::shared_ptr<STTx const></a>>;</div>
|
||||
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <a class="code" href="classripple_1_1OpenLedger.html#a7cef9403a2ac7b408703da38b91fa78d">apply</a>(app, *next, *ledger, <a class="code" href="classripple_1_1OpenLedger.html#a88144aac5696b3f33eccfaaed0aeb8ba">empty</a>{}, retries, flags, shouldRecover, <a class="code" href="classripple_1_1OpenLedger.html#a02d323b2b1ad7d9f713c3d3bb6fea649">j_</a>);</div>
|
||||
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  }</div>
|
||||
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="comment">// Block calls to modify, otherwise</span></div>
|
||||
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="comment">// new tx going into the open ledger</span></div>
|
||||
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="comment">// would get lost.</span></div>
|
||||
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a> lock1(<a class="code" href="classripple_1_1OpenLedger.html#a918f3adba0e6acb5dd1b32e73061588e">modify_mutex_</a>);</div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="comment">// Apply tx from the current open view</span></div>
|
||||
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordflow">if</span> (!<a class="code" href="classripple_1_1OpenLedger.html#ab7f4326cb3cb4aa865d2cd9a930a7641">current_</a>->txs.empty())</div>
|
||||
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  {</div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& tx : <a class="code" href="classripple_1_1OpenLedger.html#ab7f4326cb3cb4aa865d2cd9a930a7641">current_</a>->txs)</div>
|
||||
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  {</div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keyword">auto</span> <span class="keyword">const</span> txID = tx.first->getTransactionID();</div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keyword">auto</span> iter = shouldRecover.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/map/lower_bound.html">lower_bound</a>(txID);</div>
|
||||
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordflow">if</span> (iter != shouldRecover.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/map/end.html">end</a>() && iter->first == txID)</div>
|
||||
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="comment">// already had a chance via disputes</span></div>
|
||||
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  iter->second = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordflow">else</span></div>
|
||||
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  shouldRecover.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/map/emplace_hint.html">emplace_hint</a>(</div>
|
||||
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  iter, txID, app.<a class="code" href="classripple_1_1Application.html#ab7873738f31780e68f0d12d87fc35356">getHashRouter</a>().<a class="code" href="classripple_1_1HashRouter.html#a6af0b6bd7155e389fdd4f08b17d87e47">shouldRecover</a>(txID));</div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  }</div>
|
||||
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <a class="code" href="classripple_1_1OpenLedger.html#a7cef9403a2ac7b408703da38b91fa78d">apply</a>(</div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  app,</div>
|
||||
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  *next,</div>
|
||||
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  *ledger,</div>
|
||||
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  boost::adaptors::transform(</div>
|
||||
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <a class="code" href="classripple_1_1OpenLedger.html#ab7f4326cb3cb4aa865d2cd9a930a7641">current_</a>->txs,</div>
|
||||
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  [](<a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair</a><</div>
|
||||
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<STTx const></a>,</div>
|
||||
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<STObject const></a>> <span class="keyword">const</span>& p) {</div>
|
||||
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  return p.first;</div>
|
||||
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  }),</div>
|
||||
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  retries,</div>
|
||||
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  flags,</div>
|
||||
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  shouldRecover,</div>
|
||||
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <a class="code" href="classripple_1_1OpenLedger.html#a02d323b2b1ad7d9f713c3d3bb6fea649">j_</a>);</div>
|
||||
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  }</div>
|
||||
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="comment">// Call the modifier</span></div>
|
||||
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordflow">if</span> (f)</div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  f(*next, <a class="code" href="classripple_1_1OpenLedger.html#a02d323b2b1ad7d9f713c3d3bb6fea649">j_</a>);</div>
|
||||
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="comment">// Apply local tx</span></div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& item : locals)</div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  app.<a class="code" href="classripple_1_1Application.html#a9865710c130bf4427842a544b2b7f077">getTxQ</a>().<a class="code" href="classripple_1_1TxQ.html#a26f8fec7928798aeadcadb8a855c09d2">apply</a>(app, *next, item.second, flags, <a class="code" href="classripple_1_1OpenLedger.html#a02d323b2b1ad7d9f713c3d3bb6fea649">j_</a>);</div>
|
||||
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  </div>
|
||||
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="comment">// If we didn't relay this transaction recently, relay it to all peers</span></div>
|
||||
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& txpair : next->txs)</div>
|
||||
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  {</div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keyword">auto</span> <span class="keyword">const</span>& tx = txpair.first;</div>
|
||||
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="keyword">auto</span> <span class="keyword">const</span> txId = tx->getTransactionID();</div>
|
||||
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keywordflow">if</span> (<span class="keyword">auto</span> <span class="keyword">const</span> toSkip = app.<a class="code" href="classripple_1_1Application.html#ab7873738f31780e68f0d12d87fc35356">getHashRouter</a>().<a class="code" href="classripple_1_1HashRouter.html#a29980c0f77dcc002ef322c23080f3266">shouldRelay</a>(txId))</div>
|
||||
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  {</div>
|
||||
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  JLOG(<a class="code" href="classripple_1_1OpenLedger.html#a02d323b2b1ad7d9f713c3d3bb6fea649">j_</a>.<a class="code" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) << <span class="stringliteral">"Relaying recovered tx "</span> << txId;</div>
|
||||
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  protocol::TMTransaction msg;</div>
|
||||
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <a class="code" href="classripple_1_1Serializer.html">Serializer</a> s;</div>
|
||||
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  </div>
|
||||
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  tx->add(s);</div>
|
||||
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  msg.set_rawtransaction(s.<a class="code" href="classripple_1_1Serializer.html#a7caa5feabdbbeb1e2e89e0d0543b5911">data</a>(), s.<a class="code" href="classripple_1_1Serializer.html#a0c39565dc9b4fde1230586ba826889c0">size</a>());</div>
|
||||
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  msg.set_status(protocol::tsNEW);</div>
|
||||
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  msg.set_receivetimestamp(</div>
|
||||
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  app.<a class="code" href="classripple_1_1Application.html#a280004d4cce56d8f1ec4664950aa58d4">timeKeeper</a>().<a class="code" href="classripple_1_1TimeKeeper.html#af1b5d38f3ba1bcacfbb7a89979af70e4">now</a>().time_since_epoch().count());</div>
|
||||
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  app.<a class="code" href="classripple_1_1Application.html#a0511c5e849c6735036d4667a72ff01ee">overlay</a>().<a class="code" href="classripple_1_1Overlay.html#a2296ce3fbc4885e2616265ff3dd8c723">relay</a>(txId, msg, *toSkip);</div>
|
||||
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  }</div>
|
||||
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  }</div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordflow">if</span> (retriesFirst)</div>
|
||||
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  {</div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="comment">// Handle disputed tx, outside lock</span></div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keyword">using</span> <a class="code" href="classripple_1_1OpenLedger.html#a88144aac5696b3f33eccfaaed0aeb8ba">empty</a> = <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<std::shared_ptr<STTx const></a>>;</div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="classripple_1_1OpenLedger.html#a90a638edeab8df2795ec705451782975">apply</a>(app, *next, *ledger, <a class="code" href="classripple_1_1OpenLedger.html#a88144aac5696b3f33eccfaaed0aeb8ba">empty</a>{}, retries, flags, <a class="code" href="classripple_1_1OpenLedger.html#a02d323b2b1ad7d9f713c3d3bb6fea649">j_</a>);</div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  }</div>
|
||||
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="comment">// Block calls to modify, otherwise</span></div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="comment">// new tx going into the open ledger</span></div>
|
||||
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="comment">// would get lost.</span></div>
|
||||
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a> lock1(<a class="code" href="classripple_1_1OpenLedger.html#a918f3adba0e6acb5dd1b32e73061588e">modify_mutex_</a>);</div>
|
||||
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="comment">// Apply tx from the current open view</span></div>
|
||||
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keywordflow">if</span> (!<a class="code" href="classripple_1_1OpenLedger.html#ab7f4326cb3cb4aa865d2cd9a930a7641">current_</a>->txs.empty())</div>
|
||||
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  {</div>
|
||||
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <a class="code" href="classripple_1_1OpenLedger.html#a90a638edeab8df2795ec705451782975">apply</a>(</div>
|
||||
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  app,</div>
|
||||
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  *next,</div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  *ledger,</div>
|
||||
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  boost::adaptors::transform(</div>
|
||||
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <a class="code" href="classripple_1_1OpenLedger.html#ab7f4326cb3cb4aa865d2cd9a930a7641">current_</a>->txs,</div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  [](<a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair</a><</div>
|
||||
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<STTx const></a>,</div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<STObject const></a>> <span class="keyword">const</span>& p) {</div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  return p.first;</div>
|
||||
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  }),</div>
|
||||
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  retries,</div>
|
||||
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  flags,</div>
|
||||
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <a class="code" href="classripple_1_1OpenLedger.html#a02d323b2b1ad7d9f713c3d3bb6fea649">j_</a>);</div>
|
||||
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  }</div>
|
||||
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="comment">// Call the modifier</span></div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keywordflow">if</span> (f)</div>
|
||||
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  f(*next, <a class="code" href="classripple_1_1OpenLedger.html#a02d323b2b1ad7d9f713c3d3bb6fea649">j_</a>);</div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="comment">// Apply local tx</span></div>
|
||||
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& item : locals)</div>
|
||||
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  app.<a class="code" href="classripple_1_1Application.html#a9865710c130bf4427842a544b2b7f077">getTxQ</a>().<a class="code" href="classripple_1_1TxQ.html#a26f8fec7928798aeadcadb8a855c09d2">apply</a>(app, *next, item.second, flags, <a class="code" href="classripple_1_1OpenLedger.html#a02d323b2b1ad7d9f713c3d3bb6fea649">j_</a>);</div>
|
||||
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  </div>
|
||||
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="comment">// If we didn't relay this transaction recently, relay it to all peers</span></div>
|
||||
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& txpair : next->txs)</div>
|
||||
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  {</div>
|
||||
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keyword">auto</span> <span class="keyword">const</span>& tx = txpair.first;</div>
|
||||
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keyword">auto</span> <span class="keyword">const</span> txId = tx->getTransactionID();</div>
|
||||
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keywordflow">if</span> (<span class="keyword">auto</span> <span class="keyword">const</span> toSkip = app.<a class="code" href="classripple_1_1Application.html#ab7873738f31780e68f0d12d87fc35356">getHashRouter</a>().<a class="code" href="classripple_1_1HashRouter.html#a29980c0f77dcc002ef322c23080f3266">shouldRelay</a>(txId))</div>
|
||||
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  {</div>
|
||||
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  JLOG(<a class="code" href="classripple_1_1OpenLedger.html#a02d323b2b1ad7d9f713c3d3bb6fea649">j_</a>.<a class="code" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) << <span class="stringliteral">"Relaying recovered tx "</span> << txId;</div>
|
||||
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  protocol::TMTransaction msg;</div>
|
||||
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <a class="code" href="classripple_1_1Serializer.html">Serializer</a> s;</div>
|
||||
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  </div>
|
||||
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  tx->add(s);</div>
|
||||
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  msg.set_rawtransaction(s.<a class="code" href="classripple_1_1Serializer.html#a7caa5feabdbbeb1e2e89e0d0543b5911">data</a>(), s.<a class="code" href="classripple_1_1Serializer.html#a0c39565dc9b4fde1230586ba826889c0">size</a>());</div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  msg.set_status(protocol::tsNEW);</div>
|
||||
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  msg.set_receivetimestamp(</div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  app.<a class="code" href="classripple_1_1Application.html#a280004d4cce56d8f1ec4664950aa58d4">timeKeeper</a>().<a class="code" href="classripple_1_1TimeKeeper.html#af1b5d38f3ba1bcacfbb7a89979af70e4">now</a>().time_since_epoch().count());</div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  app.<a class="code" href="classripple_1_1Application.html#a0511c5e849c6735036d4667a72ff01ee">overlay</a>().<a class="code" href="classripple_1_1Overlay.html#a2296ce3fbc4885e2616265ff3dd8c723">relay</a>(txId, msg, *toSkip);</div>
|
||||
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  }</div>
|
||||
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  }</div>
|
||||
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  </div>
|
||||
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="comment">// Switch to the new open view</span></div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a> lock2(<a class="code" href="classripple_1_1OpenLedger.html#afdd6c8e6da089ba764fda1a5ba0a0f9b">current_mutex_</a>);</div>
|
||||
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <a class="code" href="classripple_1_1OpenLedger.html#ab7f4326cb3cb4aa865d2cd9a930a7641">current_</a> = std::move(next);</div>
|
||||
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> }</div>
|
||||
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  </div>
|
||||
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
||||
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  </div>
|
||||
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<OpenView></a></div>
|
||||
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="classripple_1_1OpenLedger.html#a778ee55e7d299457863870e12efdd4b6"> 147</a></span> <a class="code" href="classripple_1_1OpenLedger.html#a778ee55e7d299457863870e12efdd4b6">OpenLedger::create</a>(</div>
|
||||
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <a class="code" href="classripple_1_1Rules.html">Rules</a> <span class="keyword">const</span>& rules,</div>
|
||||
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Ledger const></a> <span class="keyword">const</span>& ledger)</div>
|
||||
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> {</div>
|
||||
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <span class="keywordflow">return</span> std::make_shared<OpenView>(</div>
|
||||
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <a class="code" href="namespaceripple.html#a44d2a8667d3293be03116b135a3b457f">open_ledger</a>,</div>
|
||||
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  rules,</div>
|
||||
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  std::make_shared<CachedLedger const>(ledger, <a class="code" href="classripple_1_1OpenLedger.html#a45ea81952cd667f5e109a173db763d3c">cache_</a>));</div>
|
||||
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> }</div>
|
||||
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  </div>
|
||||
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="comment">// Switch to the new open view</span></div>
|
||||
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a> lock2(<a class="code" href="classripple_1_1OpenLedger.html#afdd6c8e6da089ba764fda1a5ba0a0f9b">current_mutex_</a>);</div>
|
||||
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <a class="code" href="classripple_1_1OpenLedger.html#ab7f4326cb3cb4aa865d2cd9a930a7641">current_</a> = std::move(next);</div>
|
||||
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> }</div>
|
||||
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  </div>
|
||||
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
||||
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  </div>
|
||||
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<OpenView></a></div>
|
||||
<div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="classripple_1_1OpenLedger.html#a778ee55e7d299457863870e12efdd4b6"> 165</a></span> <a class="code" href="classripple_1_1OpenLedger.html#a778ee55e7d299457863870e12efdd4b6">OpenLedger::create</a>(</div>
|
||||
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <a class="code" href="classripple_1_1Rules.html">Rules</a> <span class="keyword">const</span>& rules,</div>
|
||||
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Ledger const></a> <span class="keyword">const</span>& ledger)</div>
|
||||
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> {</div>
|
||||
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keywordflow">return</span> std::make_shared<OpenView>(</div>
|
||||
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <a class="code" href="namespaceripple.html#a44d2a8667d3293be03116b135a3b457f">open_ledger</a>,</div>
|
||||
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  rules,</div>
|
||||
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  std::make_shared<CachedLedger const>(ledger, <a class="code" href="classripple_1_1OpenLedger.html#a45ea81952cd667f5e109a173db763d3c">cache_</a>));</div>
|
||||
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> }</div>
|
||||
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  </div>
|
||||
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> <span class="keyword">auto</span></div>
|
||||
<div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="classripple_1_1OpenLedger.html#a0ad6659b8ba360e7cb8fbe94412e9ee2"> 176</a></span> <a class="code" href="classripple_1_1OpenLedger.html#a0ad6659b8ba360e7cb8fbe94412e9ee2">OpenLedger::apply_one</a>(</div>
|
||||
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <a class="code" href="classripple_1_1Application.html">Application</a>& app,</div>
|
||||
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <a class="code" href="classripple_1_1OpenView.html">OpenView</a>& view,</div>
|
||||
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<STTx const></a> <span class="keyword">const</span>& tx,</div>
|
||||
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <span class="keywordtype">bool</span> retry,</div>
|
||||
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <a class="code" href="namespaceripple.html#ad2487abbcc1a5d6064b72144b461df6e">ApplyFlags</a> flags,</div>
|
||||
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keywordtype">bool</span> shouldRecover,</div>
|
||||
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> j) -> <a class="code" href="classripple_1_1OpenLedger.html#a96bb5c3c9dfae39b054eedc8d6026a97">Result</a></div>
|
||||
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> {</div>
|
||||
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="keywordflow">if</span> (retry)</div>
|
||||
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  flags = flags | <a class="code" href="namespaceripple.html#ad2487abbcc1a5d6064b72144b461df6ead993a03ae0b72db5c62a616b69eaccff">tapRETRY</a>;</div>
|
||||
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <span class="keyword">auto</span> <span class="keyword">const</span> result = [&] {</div>
|
||||
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <span class="keyword">auto</span> <span class="keyword">const</span> queueResult =</div>
|
||||
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  app.getTxQ().apply(app, view, tx, flags | <a class="code" href="namespaceripple.html#ad2487abbcc1a5d6064b72144b461df6ea26445aea31680414da8405b918c6aee1">tapPREFER_QUEUE</a>, j);</div>
|
||||
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <span class="comment">// If the transaction can't get into the queue for intrinsic</span></div>
|
||||
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <span class="comment">// reasons, and it can still be recovered, try to put it</span></div>
|
||||
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <span class="comment">// directly into the open ledger, else drop it.</span></div>
|
||||
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <span class="keywordflow">if</span> (queueResult.first == <a class="code" href="namespaceripple.html#a260d2970ac1119109937ed1c5d4ca962a811128cb863cfb8a8f5ddaecf478e318">telCAN_NOT_QUEUE</a> && shouldRecover)</div>
|
||||
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a19f506b57882e3396d15d7c43fa92d92">ripple::apply</a>(app, view, *tx, flags, j);</div>
|
||||
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="keywordflow">return</span> queueResult;</div>
|
||||
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  }();</div>
|
||||
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <span class="keywordflow">if</span> (result.second || result.first == <a class="code" href="namespaceripple.html#adebe4d783be9c979e67fdbb2bc27162fac6476cc82d6799d4a026dfa2f430e06e">terQUEUED</a>)</div>
|
||||
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="keywordflow">return</span> Result::success;</div>
|
||||
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  <span class="keywordflow">if</span> (<a class="code" href="namespaceripple.html#acb15ad0445814241454117ffa40887ef">isTefFailure</a>(result.first) || <a class="code" href="namespaceripple.html#a8a24af8b5fd8d16856553e7358feb10d">isTemMalformed</a>(result.first) ||</div>
|
||||
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <a class="code" href="namespaceripple.html#a1ca4787ab5ad78320b9703f95f48db32">isTelLocal</a>(result.first))</div>
|
||||
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="keywordflow">return</span> Result::failure;</div>
|
||||
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <span class="keywordflow">return</span> Result::retry;</div>
|
||||
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span> }</div>
|
||||
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  </div>
|
||||
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
||||
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  </div>
|
||||
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
|
||||
<div class="line"><a name="l00208"></a><span class="lineno"><a class="line" href="namespaceripple.html#af1ea8e3f1e47355b19068f429e230201"> 208</a></span> <a class="code" href="namespaceripple.html#af1ea8e3f1e47355b19068f429e230201">debugTxstr</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<STTx const></a> <span class="keyword">const</span>& tx)</div>
|
||||
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span> {</div>
|
||||
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream.html">std::stringstream</a> ss;</div>
|
||||
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  ss << tx-><a class="code" href="classripple_1_1STTx.html#ad314af66e2542db537b3b5de291d33c3">getTransactionID</a>();</div>
|
||||
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="keywordflow">return</span> ss.<a class="codeRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream/str.html">str</a>().substr(0, 4);</div>
|
||||
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span> }</div>
|
||||
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  </div>
|
||||
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
|
||||
<div class="line"><a name="l00216"></a><span class="lineno"><a class="line" href="namespaceripple.html#a97e4b79eaa01694360e38723347ea344"> 216</a></span> <a class="code" href="namespaceripple.html#a97e4b79eaa01694360e38723347ea344">debugTostr</a>(<a class="code" href="classripple_1_1CanonicalTXSet.html">OrderedTxs</a> <span class="keyword">const</span>& <a class="code" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>)</div>
|
||||
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> {</div>
|
||||
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream.html">std::stringstream</a> ss;</div>
|
||||
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& item : <a class="code" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>)</div>
|
||||
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  ss << <a class="code" href="namespaceripple.html#af1ea8e3f1e47355b19068f429e230201">debugTxstr</a>(item.second) << <span class="stringliteral">", "</span>;</div>
|
||||
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <span class="keywordflow">return</span> ss.<a class="codeRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream/str.html">str</a>();</div>
|
||||
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span> }</div>
|
||||
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  </div>
|
||||
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
|
||||
<div class="line"><a name="l00225"></a><span class="lineno"><a class="line" href="namespaceripple.html#a692ccb9a8bc67a497473e1e1761ae357"> 225</a></span> <a class="code" href="namespaceripple.html#a97e4b79eaa01694360e38723347ea344">debugTostr</a>(<a class="code" href="classripple_1_1SHAMap.html">SHAMap</a> <span class="keyword">const</span>& <a class="code" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>)</div>
|
||||
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span> {</div>
|
||||
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream.html">std::stringstream</a> ss;</div>
|
||||
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& item : <a class="code" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>)</div>
|
||||
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  {</div>
|
||||
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <span class="keywordflow">try</span></div>
|
||||
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  {</div>
|
||||
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  <a class="code" href="classripple_1_1SerialIter.html">SerialIter</a> sit(item.slice());</div>
|
||||
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <span class="keyword">auto</span> <span class="keyword">const</span> tx = std::make_shared<STTx const>(sit);</div>
|
||||
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  ss << <a class="code" href="namespaceripple.html#af1ea8e3f1e47355b19068f429e230201">debugTxstr</a>(tx) << <span class="stringliteral">", "</span>;</div>
|
||||
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  }</div>
|
||||
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  <span class="keywordflow">catch</span> (<a class="codeRef" href="http://en.cppreference.com/w/cpp/error/exception.html">std::exception</a> <span class="keyword">const</span>&)</div>
|
||||
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  {</div>
|
||||
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  ss << <span class="stringliteral">"THRO, "</span>;</div>
|
||||
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  }</div>
|
||||
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  }</div>
|
||||
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  <span class="keywordflow">return</span> ss.<a class="codeRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream/str.html">str</a>();</div>
|
||||
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span> }</div>
|
||||
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  </div>
|
||||
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
|
||||
<div class="line"><a name="l00245"></a><span class="lineno"><a class="line" href="namespaceripple.html#a2ae249ffcf04cd1614ca5c023b40720d"> 245</a></span> <a class="code" href="namespaceripple.html#a97e4b79eaa01694360e38723347ea344">debugTostr</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<ReadView const></a> <span class="keyword">const</span>& view)</div>
|
||||
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span> {</div>
|
||||
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream.html">std::stringstream</a> ss;</div>
|
||||
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& item : view-><a class="code" href="classripple_1_1ReadView.html#a5c70dc4b36e757ed6472b0aef460d858">txs</a>)</div>
|
||||
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  ss << <a class="code" href="namespaceripple.html#af1ea8e3f1e47355b19068f429e230201">debugTxstr</a>(item.first) << <span class="stringliteral">", "</span>;</div>
|
||||
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <span class="keywordflow">return</span> ss.<a class="codeRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream/str.html">str</a>();</div>
|
||||
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span> }</div>
|
||||
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  </div>
|
||||
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span> } <span class="comment">// namespace ripple</span></div>
|
||||
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> <span class="keyword">auto</span></div>
|
||||
<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="classripple_1_1OpenLedger.html#aade3c5c258064798500759fe1696ddd0"> 158</a></span> <a class="code" href="classripple_1_1OpenLedger.html#aade3c5c258064798500759fe1696ddd0">OpenLedger::apply_one</a>(</div>
|
||||
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <a class="code" href="classripple_1_1Application.html">Application</a>& app,</div>
|
||||
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <a class="code" href="classripple_1_1OpenView.html">OpenView</a>& view,</div>
|
||||
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<STTx const></a> <span class="keyword">const</span>& tx,</div>
|
||||
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <span class="keywordtype">bool</span> retry,</div>
|
||||
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <a class="code" href="namespaceripple.html#ad2487abbcc1a5d6064b72144b461df6e">ApplyFlags</a> flags,</div>
|
||||
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> j) -> <a class="code" href="classripple_1_1OpenLedger.html#a96bb5c3c9dfae39b054eedc8d6026a97">Result</a></div>
|
||||
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> {</div>
|
||||
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <span class="keywordflow">if</span> (retry)</div>
|
||||
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  flags = flags | <a class="code" href="namespaceripple.html#ad2487abbcc1a5d6064b72144b461df6ead993a03ae0b72db5c62a616b69eaccff">tapRETRY</a>;</div>
|
||||
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="comment">// If it's in anybody's proposed set, try to keep it in the ledger</span></div>
|
||||
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keyword">auto</span> <span class="keyword">const</span> result = <a class="code" href="namespaceripple.html#a19f506b57882e3396d15d7c43fa92d92">ripple::apply</a>(app, view, *tx, flags, j);</div>
|
||||
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <span class="keywordflow">if</span> (result.second || result.first == <a class="code" href="namespaceripple.html#adebe4d783be9c979e67fdbb2bc27162fac6476cc82d6799d4a026dfa2f430e06e">terQUEUED</a>)</div>
|
||||
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="keywordflow">return</span> Result::success;</div>
|
||||
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="keywordflow">if</span> (<a class="code" href="namespaceripple.html#acb15ad0445814241454117ffa40887ef">isTefFailure</a>(result.first) || <a class="code" href="namespaceripple.html#a8a24af8b5fd8d16856553e7358feb10d">isTemMalformed</a>(result.first) ||</div>
|
||||
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <a class="code" href="namespaceripple.html#a1ca4787ab5ad78320b9703f95f48db32">isTelLocal</a>(result.first))</div>
|
||||
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="keywordflow">return</span> Result::failure;</div>
|
||||
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <span class="keywordflow">return</span> Result::retry;</div>
|
||||
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> }</div>
|
||||
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  </div>
|
||||
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
||||
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  </div>
|
||||
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
|
||||
<div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="namespaceripple.html#af1ea8e3f1e47355b19068f429e230201"> 181</a></span> <a class="code" href="namespaceripple.html#af1ea8e3f1e47355b19068f429e230201">debugTxstr</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<STTx const></a> <span class="keyword">const</span>& tx)</div>
|
||||
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> {</div>
|
||||
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream.html">std::stringstream</a> ss;</div>
|
||||
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  ss << tx-><a class="code" href="classripple_1_1STTx.html#ad314af66e2542db537b3b5de291d33c3">getTransactionID</a>();</div>
|
||||
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="keywordflow">return</span> ss.<a class="codeRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream/str.html">str</a>().substr(0, 4);</div>
|
||||
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> }</div>
|
||||
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  </div>
|
||||
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
|
||||
<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="namespaceripple.html#a97e4b79eaa01694360e38723347ea344"> 189</a></span> <a class="code" href="namespaceripple.html#a97e4b79eaa01694360e38723347ea344">debugTostr</a>(<a class="code" href="classripple_1_1CanonicalTXSet.html">OrderedTxs</a> <span class="keyword">const</span>& <a class="code" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>)</div>
|
||||
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> {</div>
|
||||
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream.html">std::stringstream</a> ss;</div>
|
||||
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& item : <a class="code" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>)</div>
|
||||
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  ss << <a class="code" href="namespaceripple.html#af1ea8e3f1e47355b19068f429e230201">debugTxstr</a>(item.second) << <span class="stringliteral">", "</span>;</div>
|
||||
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <span class="keywordflow">return</span> ss.<a class="codeRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream/str.html">str</a>();</div>
|
||||
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> }</div>
|
||||
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  </div>
|
||||
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
|
||||
<div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="namespaceripple.html#a692ccb9a8bc67a497473e1e1761ae357"> 198</a></span> <a class="code" href="namespaceripple.html#a97e4b79eaa01694360e38723347ea344">debugTostr</a>(<a class="code" href="classripple_1_1SHAMap.html">SHAMap</a> <span class="keyword">const</span>& <a class="code" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>)</div>
|
||||
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> {</div>
|
||||
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream.html">std::stringstream</a> ss;</div>
|
||||
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& item : <a class="code" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>)</div>
|
||||
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  {</div>
|
||||
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <span class="keywordflow">try</span></div>
|
||||
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  {</div>
|
||||
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <a class="code" href="classripple_1_1SerialIter.html">SerialIter</a> sit(item.slice());</div>
|
||||
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <span class="keyword">auto</span> <span class="keyword">const</span> tx = std::make_shared<STTx const>(sit);</div>
|
||||
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  ss << <a class="code" href="namespaceripple.html#af1ea8e3f1e47355b19068f429e230201">debugTxstr</a>(tx) << <span class="stringliteral">", "</span>;</div>
|
||||
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  }</div>
|
||||
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <span class="keywordflow">catch</span> (<a class="codeRef" href="http://en.cppreference.com/w/cpp/error/exception.html">std::exception</a> <span class="keyword">const</span>&)</div>
|
||||
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  {</div>
|
||||
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  ss << <span class="stringliteral">"THRO, "</span>;</div>
|
||||
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  }</div>
|
||||
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  }</div>
|
||||
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keywordflow">return</span> ss.<a class="codeRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream/str.html">str</a>();</div>
|
||||
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> }</div>
|
||||
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  </div>
|
||||
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
|
||||
<div class="line"><a name="l00218"></a><span class="lineno"><a class="line" href="namespaceripple.html#a2ae249ffcf04cd1614ca5c023b40720d"> 218</a></span> <a class="code" href="namespaceripple.html#a97e4b79eaa01694360e38723347ea344">debugTostr</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<ReadView const></a> <span class="keyword">const</span>& view)</div>
|
||||
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span> {</div>
|
||||
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream.html">std::stringstream</a> ss;</div>
|
||||
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& item : view-><a class="code" href="classripple_1_1ReadView.html#a5c70dc4b36e757ed6472b0aef460d858">txs</a>)</div>
|
||||
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  ss << <a class="code" href="namespaceripple.html#af1ea8e3f1e47355b19068f429e230201">debugTxstr</a>(item.first) << <span class="stringliteral">", "</span>;</div>
|
||||
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <span class="keywordflow">return</span> ss.<a class="codeRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream/str.html">str</a>();</div>
|
||||
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span> }</div>
|
||||
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  </div>
|
||||
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span> } <span class="comment">// namespace ripple</span></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
<div class="ttc" id="aclassripple_1_1Application_html"><div class="ttname"><a href="classripple_1_1Application.html">ripple::Application</a></div><div class="ttdef"><b>Definition:</b> <a href="Application_8h_source.html#l00115">Application.h:115</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_abb724d61223be6a608b28947bd2e2236"><div class="ttname"><a href="classripple_1_1OpenLedger.html#abb724d61223be6a608b28947bd2e2236">ripple::OpenLedger::current</a></div><div class="ttdeci">std::shared_ptr< OpenView const > current() const</div><div class="ttdoc">Returns a view to the current open ledger.</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8cpp_source.html#l00050">OpenLedger.cpp:50</a></div></div>
|
||||
@@ -334,42 +307,38 @@ $(function() {
|
||||
<div class="ttc" id="anamespaceripple_html_a19f506b57882e3396d15d7c43fa92d92"><div class="ttname"><a href="namespaceripple.html#a19f506b57882e3396d15d7c43fa92d92">ripple::apply</a></div><div class="ttdeci">std::pair< TER, bool > apply(Application &app, OpenView &view, STTx const &tx, ApplyFlags flags, beast::Journal journal)</div><div class="ttdoc">Apply a transaction to an OpenView.</div><div class="ttdef"><b>Definition:</b> <a href="apply_8cpp_source.html#l00109">apply.cpp:109</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a44d2a8667d3293be03116b135a3b457f"><div class="ttname"><a href="namespaceripple.html#a44d2a8667d3293be03116b135a3b457f">ripple::open_ledger</a></div><div class="ttdeci">const open_ledger_t open_ledger</div><div class="ttdef"><b>Definition:</b> <a href="OpenView_8cpp_source.html#l00025">OpenView.cpp:25</a></div></div>
|
||||
<div class="ttc" id="apair_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1TxQ_html_a26f8fec7928798aeadcadb8a855c09d2"><div class="ttname"><a href="classripple_1_1TxQ.html#a26f8fec7928798aeadcadb8a855c09d2">ripple::TxQ::apply</a></div><div class="ttdeci">std::pair< TER, bool > apply(Application &app, OpenView &view, std::shared_ptr< STTx const > const &tx, ApplyFlags flags, beast::Journal j)</div><div class="ttdoc">Add a new transaction to the open ledger, hold it in the queue, or reject it.</div><div class="ttdef"><b>Definition:</b> <a href="TxQ_8cpp_source.html#l00725">TxQ.cpp:725</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1TxQ_html_a26f8fec7928798aeadcadb8a855c09d2"><div class="ttname"><a href="classripple_1_1TxQ.html#a26f8fec7928798aeadcadb8a855c09d2">ripple::TxQ::apply</a></div><div class="ttdeci">std::pair< TER, bool > apply(Application &app, OpenView &view, std::shared_ptr< STTx const > const &tx, ApplyFlags flags, beast::Journal j)</div><div class="ttdoc">Add a new transaction to the open ledger, hold it in the queue, or reject it.</div><div class="ttdef"><b>Definition:</b> <a href="TxQ_8cpp_source.html#l00709">TxQ.cpp:709</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenView_html"><div class="ttname"><a href="classripple_1_1OpenView.html">ripple::OpenView</a></div><div class="ttdoc">Writable ledger view that accumulates state and tx changes.</div><div class="ttdef"><b>Definition:</b> <a href="OpenView_8h_source.html#l00055">OpenView.h:55</a></div></div>
|
||||
<div class="ttc" id="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a></div><div class="ttdoc">STL class.</div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_ad2487abbcc1a5d6064b72144b461df6e"><div class="ttname"><a href="namespaceripple.html#ad2487abbcc1a5d6064b72144b461df6e">ripple::ApplyFlags</a></div><div class="ttdeci">ApplyFlags</div><div class="ttdef"><b>Definition:</b> <a href="ApplyView_8h_source.html#l00029">ApplyView.h:29</a></div></div>
|
||||
<div class="ttc" id="abasic_stringstream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_stringstream.html">std::stringstream</a></div><div class="ttdoc">STL class.</div></div>
|
||||
<div class="ttc" id="alock_guard_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a></div><div class="ttdoc">STL class.</div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a260d2970ac1119109937ed1c5d4ca962a811128cb863cfb8a8f5ddaecf478e318"><div class="ttname"><a href="namespaceripple.html#a260d2970ac1119109937ed1c5d4ca962a811128cb863cfb8a8f5ddaecf478e318">ripple::telCAN_NOT_QUEUE</a></div><div class="ttdeci">@ telCAN_NOT_QUEUE</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00058">TER.h:58</a></div></div>
|
||||
<div class="ttc" id="afunction_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Application_html_a280004d4cce56d8f1ec4664950aa58d4"><div class="ttname"><a href="classripple_1_1Application.html#a280004d4cce56d8f1ec4664950aa58d4">ripple::Application::timeKeeper</a></div><div class="ttdeci">virtual TimeKeeper & timeKeeper()=0</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a918f3adba0e6acb5dd1b32e73061588e"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a918f3adba0e6acb5dd1b32e73061588e">ripple::OpenLedger::modify_mutex_</a></div><div class="ttdeci">std::mutex modify_mutex_</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8h_source.html#l00054">OpenLedger.h:54</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a90a638edeab8df2795ec705451782975"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a90a638edeab8df2795ec705451782975">ripple::OpenLedger::apply</a></div><div class="ttdeci">static void apply(Application &app, OpenView &view, ReadView const &check, FwdRange const &txs, OrderedTxs &retries, ApplyFlags flags, beast::Journal j)</div><div class="ttdoc">Algorithm for applying transactions.</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8h_source.html#l00209">OpenLedger.h:209</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a3b20a6007626da5a1d79d1213924cb72"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a3b20a6007626da5a1d79d1213924cb72">ripple::OpenLedger::accept</a></div><div class="ttdeci">void accept(Application &app, Rules const &rules, std::shared_ptr< Ledger const > const &ledger, OrderedTxs const &locals, bool retriesFirst, OrderedTxs &retries, ApplyFlags flags, std::string const &suffix="", modify_type const &f={})</div><div class="ttdoc">Accept a new ledger.</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8cpp_source.html#l00071">OpenLedger.cpp:71</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1CanonicalTXSet_html"><div class="ttname"><a href="classripple_1_1CanonicalTXSet.html">ripple::CanonicalTXSet</a></div><div class="ttdoc">Holds transactions which were deferred to the next pass of consensus.</div><div class="ttdef"><b>Definition:</b> <a href="CanonicalTXSet_8h_source.html#l00037">CanonicalTXSet.h:37</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Serializer_html_a7caa5feabdbbeb1e2e89e0d0543b5911"><div class="ttname"><a href="classripple_1_1Serializer.html#a7caa5feabdbbeb1e2e89e0d0543b5911">ripple::Serializer::data</a></div><div class="ttdeci">void const * data() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="Serializer_8h_source.html#l00075">Serializer.h:75</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_adebe4d783be9c979e67fdbb2bc27162fac6476cc82d6799d4a026dfa2f430e06e"><div class="ttname"><a href="namespaceripple.html#adebe4d783be9c979e67fdbb2bc27162fac6476cc82d6799d4a026dfa2f430e06e">ripple::terQUEUED</a></div><div class="ttdeci">@ terQUEUED</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00201">TER.h:201</a></div></div>
|
||||
<div class="ttc" id="aemplace_hint_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/map/emplace_hint.html">std::map::emplace_hint</a></div><div class="ttdeci">T emplace_hint(T... args)</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a02d323b2b1ad7d9f713c3d3bb6fea649"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a02d323b2b1ad7d9f713c3d3bb6fea649">ripple::OpenLedger::j_</a></div><div class="ttdeci">const beast::Journal j_</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8h_source.html#l00052">OpenLedger.h:52</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_acb15ad0445814241454117ffa40887ef"><div class="ttname"><a href="namespaceripple.html#acb15ad0445814241454117ffa40887ef">ripple::isTefFailure</a></div><div class="ttdeci">bool isTefFailure(TER x)</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00572">TER.h:572</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a83bc97098814823939ed94c547a257f4"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a83bc97098814823939ed94c547a257f4">ripple::OpenLedger::OpenLedger</a></div><div class="ttdeci">OpenLedger()=delete</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1SHAMap_html"><div class="ttname"><a href="classripple_1_1SHAMap.html">ripple::SHAMap</a></div><div class="ttdoc">A SHAMap is both a radix tree with a fan-out of 16 and a Merkle tree.</div><div class="ttdef"><b>Definition:</b> <a href="SHAMap_8h_source.html#l00095">SHAMap.h:95</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Application_html_a9865710c130bf4427842a544b2b7f077"><div class="ttname"><a href="classripple_1_1Application.html#a9865710c130bf4427842a544b2b7f077">ripple::Application::getTxQ</a></div><div class="ttdeci">virtual TxQ & getTxQ()=0</div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a53f80df10254751781250aa20704e98f"><div class="ttname"><a href="namespaceripple.html#a53f80df10254751781250aa20704e98f">ripple::set</a></div><div class="ttdeci">bool set(T &target, std::string const &name, Section const &section)</div><div class="ttdoc">Set a value from a configuration Section If the named value is not found or doesn't parse as a T,...</div><div class="ttdef"><b>Definition:</b> <a href="BasicConfig_8h_source.html#l00313">BasicConfig.h:313</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1HashRouter_html_a6af0b6bd7155e389fdd4f08b17d87e47"><div class="ttname"><a href="classripple_1_1HashRouter.html#a6af0b6bd7155e389fdd4f08b17d87e47">ripple::HashRouter::shouldRecover</a></div><div class="ttdeci">bool shouldRecover(uint256 const &key)</div><div class="ttdoc">Determines whether the hashed item should be recovered from the open ledger into the next open ledger...</div><div class="ttdef"><b>Definition:</b> <a href="HashRouter_8cpp_source.html#l00132">HashRouter.cpp:132</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1SerialIter_html"><div class="ttname"><a href="classripple_1_1SerialIter.html">ripple::SerialIter</a></div><div class="ttdef"><b>Definition:</b> <a href="Serializer_8h_source.html#l00310">Serializer.h:310</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_af1ea8e3f1e47355b19068f429e230201"><div class="ttname"><a href="namespaceripple.html#af1ea8e3f1e47355b19068f429e230201">ripple::debugTxstr</a></div><div class="ttdeci">std::string debugTxstr(std::shared_ptr< STTx const > const &tx)</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8cpp_source.html#l00208">OpenLedger.cpp:208</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_af1ea8e3f1e47355b19068f429e230201"><div class="ttname"><a href="namespaceripple.html#af1ea8e3f1e47355b19068f429e230201">ripple::debugTxstr</a></div><div class="ttdeci">std::string debugTxstr(std::shared_ptr< STTx const > const &tx)</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8cpp_source.html#l00181">OpenLedger.cpp:181</a></div></div>
|
||||
<div class="ttc" id="aclassbeast_1_1Journal_html"><div class="ttname"><a href="classbeast_1_1Journal.html">beast::Journal</a></div><div class="ttdoc">A generic endpoint for log messages.</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00058">Journal.h:58</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Overlay_html_a2296ce3fbc4885e2616265ff3dd8c723"><div class="ttname"><a href="classripple_1_1Overlay.html#a2296ce3fbc4885e2616265ff3dd8c723">ripple::Overlay::relay</a></div><div class="ttdeci">virtual std::set< Peer::id_t > relay(protocol::TMProposeSet &m, uint256 const &uid, PublicKey const &validator)=0</div><div class="ttdoc">Relay a proposal.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1HashRouter_html_a29980c0f77dcc002ef322c23080f3266"><div class="ttname"><a href="classripple_1_1HashRouter.html#a29980c0f77dcc002ef322c23080f3266">ripple::HashRouter::shouldRelay</a></div><div class="ttdeci">std::optional< std::set< PeerShortID > > shouldRelay(uint256 const &key)</div><div class="ttdoc">Determines whether the hashed item should be relayed.</div><div class="ttdef"><b>Definition:</b> <a href="HashRouter_8cpp_source.html#l00118">HashRouter.cpp:118</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_ad2487abbcc1a5d6064b72144b461df6ea26445aea31680414da8405b918c6aee1"><div class="ttname"><a href="namespaceripple.html#ad2487abbcc1a5d6064b72144b461df6ea26445aea31680414da8405b918c6aee1">ripple::tapPREFER_QUEUE</a></div><div class="ttdeci">@ tapPREFER_QUEUE</div><div class="ttdef"><b>Definition:</b> <a href="ApplyView_8h_source.html#l00043">ApplyView.h:43</a></div></div>
|
||||
<div class="ttc" id="amap_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/map.html">std::map</a></div><div class="ttdoc">STL class.</div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a97e4b79eaa01694360e38723347ea344"><div class="ttname"><a href="namespaceripple.html#a97e4b79eaa01694360e38723347ea344">ripple::debugTostr</a></div><div class="ttdeci">std::string debugTostr(OrderedTxs const &set)</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8cpp_source.html#l00216">OpenLedger.cpp:216</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a97e4b79eaa01694360e38723347ea344"><div class="ttname"><a href="namespaceripple.html#a97e4b79eaa01694360e38723347ea344">ripple::debugTostr</a></div><div class="ttdeci">std::string debugTostr(OrderedTxs const &set)</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8cpp_source.html#l00189">OpenLedger.cpp:189</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a88144aac5696b3f33eccfaaed0aeb8ba"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a88144aac5696b3f33eccfaaed0aeb8ba">ripple::OpenLedger::empty</a></div><div class="ttdeci">bool empty() const</div><div class="ttdoc">Returns true if there are no transactions.</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8cpp_source.html#l00043">OpenLedger.cpp:43</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1STTx_html_ad314af66e2542db537b3b5de291d33c3"><div class="ttname"><a href="classripple_1_1STTx.html#ad314af66e2542db537b3b5de291d33c3">ripple::STTx::getTransactionID</a></div><div class="ttdeci">uint256 getTransactionID() const</div><div class="ttdef"><b>Definition:</b> <a href="STTx_8h_source.html#l00118">STTx.h:118</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_ad2487abbcc1a5d6064b72144b461df6ead993a03ae0b72db5c62a616b69eaccff"><div class="ttname"><a href="namespaceripple.html#ad2487abbcc1a5d6064b72144b461df6ead993a03ae0b72db5c62a616b69eaccff">ripple::tapRETRY</a></div><div class="ttdeci">@ tapRETRY</div><div class="ttdef"><b>Definition:</b> <a href="ApplyView_8h_source.html#l00038">ApplyView.h:38</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Serializer_html"><div class="ttname"><a href="classripple_1_1Serializer.html">ripple::Serializer</a></div><div class="ttdef"><b>Definition:</b> <a href="Serializer_8h_source.html#l00039">Serializer.h:39</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
|
||||
<div class="ttc" id="alower_bound_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/map/lower_bound.html">std::map::lower_bound</a></div><div class="ttdeci">T lower_bound(T... args)</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_aade3c5c258064798500759fe1696ddd0"><div class="ttname"><a href="classripple_1_1OpenLedger.html#aade3c5c258064798500759fe1696ddd0">ripple::OpenLedger::apply_one</a></div><div class="ttdeci">static Result apply_one(Application &app, OpenView &view, std::shared_ptr< STTx const > const &tx, bool retry, ApplyFlags flags, beast::Journal j)</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8cpp_source.html#l00158">OpenLedger.cpp:158</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Serializer_html_a0c39565dc9b4fde1230586ba826889c0"><div class="ttname"><a href="classripple_1_1Serializer.html#a0c39565dc9b4fde1230586ba826889c0">ripple::Serializer::size</a></div><div class="ttdeci">std::size_t size() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="Serializer_8h_source.html#l00069">Serializer.h:69</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a45ea81952cd667f5e109a173db763d3c"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a45ea81952cd667f5e109a173db763d3c">ripple::OpenLedger::cache_</a></div><div class="ttdeci">CachedSLEs & cache_</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8h_source.html#l00053">OpenLedger.h:53</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a1ca4787ab5ad78320b9703f95f48db32"><div class="ttname"><a href="namespaceripple.html#a1ca4787ab5ad78320b9703f95f48db32">ripple::isTelLocal</a></div><div class="ttdeci">bool isTelLocal(TER x)</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00560">TER.h:560</a></div></div>
|
||||
@@ -378,12 +347,9 @@ $(function() {
|
||||
<div class="ttc" id="aclassripple_1_1Rules_html"><div class="ttname"><a href="classripple_1_1Rules.html">ripple::Rules</a></div><div class="ttdoc">Rules controlling protocol behavior.</div><div class="ttdef"><b>Definition:</b> <a href="ReadView_8h_source.html#l00131">ReadView.h:131</a></div></div>
|
||||
<div class="ttc" id="astr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_stringstream/str.html">std::stringstream::str</a></div><div class="ttdeci">T str(T... args)</div></div>
|
||||
<div class="ttc" id="aclassbeast_1_1Journal_html_a556228cb60bcf405c225d3f64b7b01ae"><div class="ttname"><a href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">beast::Journal::debug</a></div><div class="ttdeci">Stream debug() const</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00315">Journal.h:315</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a96bb5c3c9dfae39b054eedc8d6026a97"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a96bb5c3c9dfae39b054eedc8d6026a97">ripple::OpenLedger::Result</a></div><div class="ttdeci">Result</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8h_source.html#l00191">OpenLedger.h:191</a></div></div>
|
||||
<div class="ttc" id="aend_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/map/end.html">std::map::end</a></div><div class="ttdeci">T end(T... args)</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a778ee55e7d299457863870e12efdd4b6"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a778ee55e7d299457863870e12efdd4b6">ripple::OpenLedger::create</a></div><div class="ttdeci">std::shared_ptr< OpenView > create(Rules const &rules, std::shared_ptr< Ledger const > const &ledger)</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8cpp_source.html#l00165">OpenLedger.cpp:165</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a96bb5c3c9dfae39b054eedc8d6026a97"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a96bb5c3c9dfae39b054eedc8d6026a97">ripple::OpenLedger::Result</a></div><div class="ttdeci">Result</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8h_source.html#l00190">OpenLedger.h:190</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a778ee55e7d299457863870e12efdd4b6"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a778ee55e7d299457863870e12efdd4b6">ripple::OpenLedger::create</a></div><div class="ttdeci">std::shared_ptr< OpenView > create(Rules const &rules, std::shared_ptr< Ledger const > const &ledger)</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8cpp_source.html#l00147">OpenLedger.cpp:147</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_afdd6c8e6da089ba764fda1a5ba0a0f9b"><div class="ttname"><a href="classripple_1_1OpenLedger.html#afdd6c8e6da089ba764fda1a5ba0a0f9b">ripple::OpenLedger::current_mutex_</a></div><div class="ttdeci">std::mutex current_mutex_</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8h_source.html#l00055">OpenLedger.h:55</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a0ad6659b8ba360e7cb8fbe94412e9ee2"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a0ad6659b8ba360e7cb8fbe94412e9ee2">ripple::OpenLedger::apply_one</a></div><div class="ttdeci">static Result apply_one(Application &app, OpenView &view, std::shared_ptr< STTx const > const &tx, bool retry, ApplyFlags flags, bool shouldRecover, beast::Journal j)</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8cpp_source.html#l00176">OpenLedger.cpp:176</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a7cef9403a2ac7b408703da38b91fa78d"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a7cef9403a2ac7b408703da38b91fa78d">ripple::OpenLedger::apply</a></div><div class="ttdeci">static void apply(Application &app, OpenView &view, ReadView const &check, FwdRange const &txs, OrderedTxs &retries, ApplyFlags flags, std::map< uint256, bool > &shouldRecover, beast::Journal j)</div><div class="ttdoc">Algorithm for applying transactions.</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8h_source.html#l00211">OpenLedger.h:211</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Application_html_ab7873738f31780e68f0d12d87fc35356"><div class="ttname"><a href="classripple_1_1Application.html#ab7873738f31780e68f0d12d87fc35356">ripple::Application::getHashRouter</a></div><div class="ttdeci">virtual HashRouter & getHashRouter()=0</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a05ada40b015a008ffd28668b8daf5808"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a05ada40b015a008ffd28668b8daf5808">ripple::OpenLedger::modify</a></div><div class="ttdeci">bool modify(modify_type const &f)</div><div class="ttdoc">Modify the open ledger.</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8cpp_source.html#l00057">OpenLedger.cpp:57</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a8a24af8b5fd8d16856553e7358feb10d"><div class="ttname"><a href="namespaceripple.html#a8a24af8b5fd8d16856553e7358feb10d">ripple::isTemMalformed</a></div><div class="ttdeci">bool isTemMalformed(TER x)</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00566">TER.h:566</a></div></div>
|
||||
|
||||
Reference in New Issue
Block a user