forked from monero-project/monero
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tx scanning for basic transactions working - TODO: subadresses. The scanning code is there, but it does not currently know/care about any subaddresses. daemon comms for basic syncing working (multi-)wallet sync more or less working properly - seem to have a dangling shared_ptr somewhere when removing a wallet from daemon comms, so not working perfectly yet. Lots of TODOs and cleanup needed, as well as further features of course.
- Loading branch information
Showing
57 changed files
with
2,578 additions
and
296 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
BasedOnStyle: Google | ||
AlignAfterOpenBracket: AlwaysBreak | ||
AlignConsecutiveAssignments: 'false' | ||
AlignConsecutiveDeclarations: 'false' | ||
AlignEscapedNewlinesLeft: 'true' | ||
AlignOperands: 'false' | ||
AlignTrailingComments: 'true' | ||
AllowShortBlocksOnASingleLine: 'false' | ||
AllowShortCaseLabelsOnASingleLine: 'false' | ||
AllowShortFunctionsOnASingleLine: None | ||
AllowShortIfStatementsOnASingleLine: 'false' | ||
AllowShortLoopsOnASingleLine: 'false' | ||
AlwaysBreakAfterDefinitionReturnType: All | ||
AlwaysBreakAfterReturnType: All | ||
AlwaysBreakTemplateDeclarations: 'true' | ||
BreakBeforeBinaryOperators: NonAssignment | ||
BreakBeforeBraces: Custom | ||
BraceWrapping: | ||
AfterCaseLabel: true | ||
AfterClass: true | ||
AfterControlStatement: true | ||
AfterEnum: true | ||
AfterFunction: true | ||
AfterNamespace: true | ||
AfterObjCDeclaration: true | ||
AfterStruct: true | ||
AfterUnion: true | ||
AfterExternBlock: true | ||
BeforeCatch: true | ||
BeforeElse: true | ||
SplitEmptyFunction: false | ||
SplitEmptyRecord: false | ||
SplitEmptyNamespace: false | ||
BreakBeforeTernaryOperators: 'true' | ||
BreakConstructorInitializersBeforeComma: 'true' | ||
Cpp11BracedListStyle: 'true' | ||
KeepEmptyLinesAtTheStartOfBlocks: 'false' | ||
NamespaceIndentation: All | ||
PenaltyBreakString: '3' | ||
SpaceBeforeParens: ControlStatements | ||
SpacesInAngles: 'false' | ||
SpacesInContainerLiterals: 'false' | ||
SpacesInParentheses: 'false' | ||
SpacesInSquareBrackets: 'false' | ||
Standard: Cpp11 | ||
UseTab: Never | ||
SortIncludes: false | ||
ColumnLimit: 100 | ||
|
||
# treat pointers and reference declarations as if part of the type | ||
DerivePointerAlignment: false | ||
PointerAlignment: Left | ||
|
||
# when wrapping function calls/declarations, force each parameter to have its own line | ||
BinPackParameters: 'false' | ||
BinPackArguments: 'false' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/usr/bin/env bash | ||
|
||
CLANG_FORMAT_DESIRED_VERSION=11 | ||
|
||
TARGET_DIRS=(src/wallet3 src/sqlitedb) | ||
|
||
binary=$(which clang-format-$CLANG_FORMAT_DESIRED_VERSION 2>/dev/null) | ||
if [ $? -ne 0 ]; then | ||
binary=$(which clang-format-mp-$CLANG_FORMAT_DESIRED_VERSION 2>/dev/null) | ||
fi | ||
if [ $? -ne 0 ]; then | ||
binary=$(which clang-format 2>/dev/null) | ||
if [ $? -ne 0 ]; then | ||
echo "Please install clang-format version $CLANG_FORMAT_DESIRED_VERSION and re-run this script." | ||
exit 1 | ||
fi | ||
version=$(clang-format --version) | ||
if [[ ! $version == *"clang-format version $CLANG_FORMAT_DESIRED_VERSION"* ]]; then | ||
echo "Please install clang-format version $CLANG_FORMAT_DESIRED_VERSION and re-run this script." | ||
exit 1 | ||
fi | ||
fi | ||
|
||
cd "$(dirname $0)/../" | ||
if [ "$1" = "verify" ] ; then | ||
for d in ${TARGET_DIRS[@]}; do | ||
if [ $($binary --output-replacements-xml $(find $d | grep -E '\.([hc](pp)?|mm?)$' | grep -v '\#') | grep '</replacement>' | wc -l) -ne 0 ] ; then | ||
exit 1 | ||
fi | ||
done | ||
else | ||
for d in ${TARGET_DIRS[@]}; do | ||
echo "Formatting $d" | ||
$binary -i $(find $d | grep -E '\.([hc](pp)?|mm)$' | grep -v '\#') &> /dev/null | ||
done | ||
fi | ||
|
||
swift_format=$(which swiftformat 2>/dev/null) | ||
if [ $? -eq 0 ]; then | ||
if [ "$1" = "verify" ] ; then | ||
for f in $(find daemon | grep -E '\.swift$' | grep -v '\#') ; do | ||
if [ $($swift_format --quiet --dryrun < "$f" | diff "$f" - | wc -l) -ne 0 ] ; then | ||
exit 1 | ||
fi | ||
done | ||
else | ||
$swift_format --quiet $(find daemon | grep -E '\.swift$' | grep -v '\#') | ||
fi | ||
|
||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.