Updating and applying formatting changes. (#3209)
This commit is contained in:
parent
bca5142309
commit
8d0a03e23d
188 changed files with 4409 additions and 4406 deletions
|
|
@ -7,22 +7,23 @@ Standard: Cpp11
|
|||
TabWidth: 4
|
||||
IndentWidth: 4
|
||||
PointerAlignment: Middle
|
||||
UseTab: ForIndentation
|
||||
UseTab: ForContinuationAndIndentation
|
||||
BreakBeforeBraces: Custom
|
||||
AlignEscapedNewlines: Left
|
||||
AllowShortBlocksOnASingleLine: false
|
||||
AllowShortCaseLabelsOnASingleLine: false
|
||||
AllowShortFunctionsOnASingleLine: false
|
||||
AllowShortLambdasOnASingleLine: All
|
||||
AllowShortLoopsOnASingleLine: false
|
||||
BreakConstructorInitializersBeforeComma: true
|
||||
BreakConstructorInitializers: AfterColon
|
||||
ConstructorInitializerAllOnOneLineOrOnePerLine: false
|
||||
ConstructorInitializerIndentWidth: 0
|
||||
ContinuationIndentWidth: 0
|
||||
KeepEmptyLinesAtTheStartOfBlocks: false
|
||||
IndentCaseLabels: true
|
||||
SpaceBeforeCpp11BracedList: false
|
||||
BraceWrapping:
|
||||
AfterCaseLabel: true
|
||||
AfterEnum: true
|
||||
AfterStruct: true
|
||||
SplitEmptyFunction: true
|
||||
|
|
@ -33,6 +34,7 @@ BraceWrapping:
|
|||
AfterClass: true
|
||||
BeforeCatch: true
|
||||
BeforeElse: true
|
||||
BeforeLambdaBody: true
|
||||
SplitEmptyRecord: true
|
||||
SplitEmptyNamespace: true
|
||||
SortIncludes: true
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
|
||||
TEST (processor_service, bad_send_signature)
|
||||
{
|
||||
nano::logger_mt logger;
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@
|
|||
#include <nano/secure/common.hpp>
|
||||
|
||||
#include <boost/multi_index/hashed_index.hpp>
|
||||
#include <boost/multi_index/ordered_index.hpp>
|
||||
#include <boost/multi_index/member.hpp>
|
||||
#include <boost/multi_index/ordered_index.hpp>
|
||||
#include <boost/multi_index/sequenced_index.hpp>
|
||||
#include <boost/multi_index_container.hpp>
|
||||
|
||||
|
|
@ -47,14 +47,16 @@ class vote_spacing final
|
|||
mi::hashed_non_unique<mi::tag<class tag_root>,
|
||||
mi::member<entry, nano::root, &entry::root>>,
|
||||
mi::ordered_non_unique<mi::tag<class tag_time>,
|
||||
mi::member<entry, std::chrono::steady_clock::time_point, &entry::time>>
|
||||
>>
|
||||
mi::member<entry, std::chrono::steady_clock::time_point, &entry::time>>>>
|
||||
recent;
|
||||
std::chrono::milliseconds const delay;
|
||||
void trim ();
|
||||
|
||||
public:
|
||||
vote_spacing (std::chrono::milliseconds const & delay) :
|
||||
delay{ delay } {}
|
||||
delay{ delay }
|
||||
{
|
||||
}
|
||||
bool votable (nano::root const & root_a, nano::block_hash const & hash_a) const;
|
||||
void flag (nano::root const & root_a, nano::block_hash const & hash_a);
|
||||
size_t size () const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue