Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development #300

Merged
merged 121 commits into from
Aug 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
121 commits
Select commit Hold shift + click to select a range
a637768
Withdraw deposit without vector
cartoon-face Feb 19, 2022
984f8f3
List wallet deposits
cartoon-face Feb 19, 2022
c07834c
Deposit CCX function
cartoon-face Feb 19, 2022
3da34bd
Withdraw CCX function
cartoon-face Feb 19, 2022
89d21ba
Merge branch 'ConcealNetwork:master' into feat-banking
cartoon-face Feb 21, 2022
c606cd1
Confirm deposit
cartoon-face Feb 21, 2022
c009c7c
Missing semi-colon
cartoon-face Feb 21, 2022
0fe420e
Remove do while true
cartoon-face Feb 27, 2022
6209c34
Update confirm deposit function
cartoon-face Feb 28, 2022
1c54517
Stray brace
cartoon-face Feb 28, 2022
c5cb645
Trigger rebuild for tests
cartoon-face Feb 28, 2022
cc170ba
Update deposit command
cartoon-face Mar 1, 2022
61c5520
Fix hash output
cartoon-face Mar 1, 2022
b783465
Remove possible infinate loop
cartoon-face Mar 3, 2022
ce56316
List actual deposit info, not the tx that made the deposit
cartoon-face Mar 7, 2022
628a9ef
Adjust `list_deposits` output
cartoon-face Mar 12, 2022
e236e56
Possible bug
cartoon-face Mar 17, 2022
ee0a298
Make use of caught exception
cartoon-face Mar 17, 2022
4627254
Make use of caught exception
cartoon-face Mar 17, 2022
57c6678
Make use of caught exception
cartoon-face Mar 17, 2022
200545c
Make use of caught exception
cartoon-face Mar 17, 2022
153c1c0
Make use of caught exception
cartoon-face Mar 17, 2022
9994e62
Don't overthink it man.
cartoon-face Mar 25, 2022
e911539
Store deposit height & unlockHeight when inserting new deposit
cartoon-face Mar 27, 2022
9567b81
Update output for list_deposits
cartoon-face Mar 27, 2022
54c2230
Store deposit height & unlockHeight when doing multisig tx
cartoon-face Mar 27, 2022
f8ee2db
Store deposit height and use that to calculate interest
cartoon-face Mar 27, 2022
1a843ea
Serialize and add deposit to Legacy
cartoon-face Mar 29, 2022
65d6a8d
Deposit changes
cartoon-face Mar 29, 2022
d4427d0
Clear deposits on reset
cartoon-face Mar 29, 2022
771e748
Serialise height & unlockHeight
cartoon-face Mar 29, 2022
31ee9c5
Update v1 serializer
cartoon-face Mar 29, 2022
75ef183
Trigger rebuild
cartoon-face Mar 29, 2022
7008bcf
Add height to tx context & deposit request
cartoon-face Mar 30, 2022
651ca92
Touchups
cartoon-face Apr 2, 2022
5fef87f
Cleanup
cartoon-face Apr 3, 2022
bd79108
Remove deposits from serialisation v1
cartoon-face Apr 5, 2022
206afda
Print deposit balances
cartoon-face Apr 6, 2022
3c4416d
Keep support for GUI
cartoon-face Apr 8, 2022
d9bd0de
Daemon testnet
AxVultis Apr 9, 2022
648e9f5
Daemon testnet tests
AxVultis Apr 9, 2022
6aef9c3
Update testnet checkpoints
AxVultis Apr 9, 2022
379f8cb
WalletLegacy testnet
AxVultis Apr 9, 2022
07016a7
PaymentGateService testnet
AxVultis Apr 9, 2022
c607808
Update PaymentGate default bind port
AxVultis Apr 9, 2022
b234513
Remove appveyor
AxVultis Apr 9, 2022
a3cbfb8
Update travis
AxVultis Apr 9, 2022
4df5ef0
Use same logic for unlockHeight
cartoon-face Apr 9, 2022
86307e5
Don't use context, always use txInfo for height
cartoon-face Apr 11, 2022
5a65043
Get deposit height from the transaction that made the deposit
cartoon-face Apr 13, 2022
50159de
Update deposit info
cartoon-face Apr 13, 2022
2d64148
Trigger rebuild
cartoon-face Apr 13, 2022
dbb9c0b
Update SimpleWallet.cpp
cartoon-face Apr 17, 2022
06c697d
Update travis
AxVultis Apr 25, 2022
7d26351
Get TX from deposits creating ID
cartoon-face Apr 28, 2022
7fc0a84
Use same logic here
cartoon-face Apr 28, 2022
7fde676
Build CryptoTests, TransfersTests, UnitTests, HashTargetTests and Has…
AxVultis May 19, 2022
ac25c0a
Merge pull request #287 from ConcealNetwork/travis
AxVultis May 20, 2022
760f7b9
Merge branch 'master' into development
AxVultis May 21, 2022
8ee7f9f
Update BlockReward tests
AxVultis May 22, 2022
e85c89a
Update Checkpoints tests
AxVultis May 22, 2022
e2229b0
Update TestUpgradeDetector tests
AxVultis May 22, 2022
ab8523d
Merge branch 'development' into feat-banking
krypt0x May 23, 2022
4b2a70d
Account for deposit balances in `show_balance`
cartoon-face May 26, 2022
311e8b6
Update runtime_error messages
AxVultis May 27, 2022
9317680
Update serialization
AxVultis May 27, 2022
f5381fd
Update TestTransactionPoolDetach tests
AxVultis May 28, 2022
8b2e91e
Update TestWalletService tests
AxVultis May 28, 2022
261b438
Add unit_tests to check
AxVultis May 28, 2022
ce180ec
Add one test to filter
AxVultis May 28, 2022
1ab0a2d
Revert requested
cartoon-face May 31, 2022
813af26
Missing semi
cartoon-face May 31, 2022
b07b754
Possible to build with mingw
AxVultis May 31, 2022
d33f70d
Remove height from deposit request
cartoon-face Jun 2, 2022
0c701c1
Remove height from make deposit request
cartoon-face Jun 2, 2022
5b8d0f0
Update TransactionPool
AxVultis Jun 6, 2022
36a583d
Update cn_slow_hash_soft
AxVultis Jun 6, 2022
7b77baa
Merge branch 'strings' into unit-tests
AxVultis Jun 6, 2022
9551b91
Merge branch 'mingw' into unit-tests
AxVultis Jun 6, 2022
795ccd9
Update BOOST_ROOT
AxVultis Jun 6, 2022
dac14cb
Update tests
AxVultis Jun 6, 2022
ac6feca
Update Json Serialization
AxVultis Jun 6, 2022
1e522ce
Add MinGW to build check
AxVultis Jun 6, 2022
87f81b2
Merge branch 'unit-tests' into mingw
AxVultis Jun 6, 2022
8783041
Update NetNode
AxVultis Jun 6, 2022
56c2509
Merge branch 'mingw' into unit-tests
AxVultis Jun 6, 2022
5321ba3
Fix Remote fee address implementation
cartoon-face Jun 7, 2022
1f2360b
Fix remote address
cartoon-face Jun 7, 2022
550381d
Merge branch 'ConcealNetwork:master' into cli-remote-address
cartoon-face Jun 7, 2022
f2fabc0
Make help & ext_help stand out
cartoon-face Jun 7, 2022
f0a9e14
Remove optional arg message
cartoon-face Jun 7, 2022
acbe694
Use TxInfo for unlock height using tx height + deposit term
cartoon-face Jun 7, 2022
2c4d46f
Mnemonics update
cartoon-face Jun 7, 2022
fd46a0f
Merge pull request #288 from cartoon-face/sonarcloud
AxVultis Jun 8, 2022
e8a3d31
Merge pull request #289 from cartoon-face/cli-remote-address
AxVultis Jun 8, 2022
03188e3
Merge pull request #281 from cartoon-face/feat-banking
AxVultis Jun 8, 2022
00cee59
Use correct height and unlock height
AxVultis Jun 8, 2022
346f27c
Check deposit
AxVultis Jun 8, 2022
c0e1056
Maybe trigger rebuild
cartoon-face Jun 14, 2022
72a980a
Update Mnemonics.h
cartoon-face Jun 14, 2022
a9fbd73
Merge pull request #290 from cartoon-face/mnemonic
AxVultis Jun 16, 2022
eaa2e85
Update Mnemonics
AxVultis Jun 16, 2022
01afa1b
Merge pull request #291 from ConcealNetwork/banking
AxVultis Jun 24, 2022
4a9e2cc
Update TransactionPool tests
AxVultis Jun 25, 2022
5838f91
Update TestWalletLegacy
AxVultis Jul 3, 2022
54a4257
Update TestWalletLegacy
AxVultis Jul 8, 2022
6dd475e
Update TestWalletLegacy
AxVultis Jul 8, 2022
4e00ee1
Merge pull request #292 from AxVultis/unit-tests
AxVultis Jul 8, 2022
fa50092
Merge pull request #293 from ConcealNetwork/mnemonics
AxVultis Jul 9, 2022
2905acf
Update SimpleWallet testnet
AxVultis Jul 9, 2022
9573595
Save all transactions to file
cartoon-face Jul 11, 2022
695d569
Trigger rebuild
cartoon-face Jul 11, 2022
84e46b5
Adjustments
cartoon-face Jul 14, 2022
7b7af14
Improvements
cartoon-face Jul 14, 2022
d2722a3
Fix block difficulty in RpcServer
AxVultis Jul 17, 2022
7dea301
Improvements
cartoon-face Jul 17, 2022
d4f8adf
Trigger rebuild
cartoon-face Jul 18, 2022
d61732c
Merge pull request #294 from cartoon-face/development
AxVultis Jul 23, 2022
6a80955
Merge pull request #296 from AxVultis/development
AxVultis Jul 24, 2022
95169c3
Merge branch 'development' into update-branch
AxVultis Jul 24, 2022
5d9aa9a
Merge pull request #297 from ConcealNetwork/update-branch
AxVultis Jul 24, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .appveyor.yml

This file was deleted.

116 changes: 110 additions & 6 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
name: Windows
runs-on: windows-2019
env:
BOOST_ROOT: C:/tools/boost/x86_64
BOOST_ROOT: C:/local/boost_1_72_0
steps:
- uses: actions/checkout@master

Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
mv build/src/Release/concealwallet.exe build/conceal
mv build/src/Release/optimizer.exe build/conceal
mv build/src/Release/walletd.exe build/conceal
mv build/tests/Release/*_tests.exe build/conceal
cp build/tests/Release/*_tests.exe build/conceal

- name: Upload To GH Artifacts
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -82,6 +82,90 @@ jobs:
run: |
cd build/conceal
./performance_tests.exe

- name: unit_tests
shell: powershell
run: |
cd build/tests
ctest -R UnitTests --output-on-failure

build-mingw:
name: MinGW
runs-on: windows-2019
steps:
- uses: msys2/setup-msys2@v2
with:
update: true
install: >-
git
base-devel
mingw-w64-x86_64-toolchain
mingw-w64-x86_64-boost
mingw-w64-x86_64-cmake

- uses: actions/checkout@master

- name: Prepare version
shell: powershell
id: setup
run: |
$os="mingw"
$ccx_version="${{ github.sha }}".SubString(0,7)
$release_name="ccx-cli-$os-dev-$ccx_version"
echo "::set-output name=release_name::${release_name}"

- name: Build
shell: msys2 {0}
id: build
run: |
ls
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=ON -DSTATIC=ON
cmake --build . --config Release

- name: Prepare release
shell: msys2 {0}
run: |
mkdir build/conceal
mv build/src/conceald.exe build/conceal
mv build/src/concealwallet.exe build/conceal
mv build/src/optimizer.exe build/conceal
mv build/src/walletd.exe build/conceal
cp build/tests/*_tests.exe build/conceal

- name: Upload To GH Artifacts
uses: actions/upload-artifact@v2
with:
name: ${{ steps.setup.outputs.release_name }}
path: build/conceal
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: core_tests
shell: powershell
run: |
cd build/conceal
./core_tests.exe --generate_and_play_test_data

- name: difficulty_tests
shell: powershell
run: |
cp tests/Difficulty/data.txt build/conceal
cd build/conceal
./difficulty_tests.exe data.txt

- name: performance_tests
shell: powershell
run: |
cd build/conceal
./performance_tests.exe

- name: unit_tests
shell: powershell
run: |
cd build/tests
ctest -R UnitTests --output-on-failure

build-ubuntu18:
name: Ubuntu 18.04
Expand Down Expand Up @@ -117,7 +201,7 @@ jobs:
mv build/src/concealwallet build/conceal
mv build/src/optimizer build/conceal
mv build/src/walletd build/conceal
mv build/tests/*_tests build/conceal
cp build/tests/*_tests build/conceal

- name: Upload To GH Artifacts
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -147,6 +231,11 @@ jobs:
run: |
cd build/conceal
./system_tests

- name: unit_tests
run: |
cd build/tests
ctest -R UnitTests --output-on-failure

build-ubuntu20:
name: Ubuntu 20.04
Expand Down Expand Up @@ -182,7 +271,7 @@ jobs:
mv build/src/concealwallet build/conceal
mv build/src/optimizer build/conceal
mv build/src/walletd build/conceal
mv build/tests/*_tests build/conceal
cp build/tests/*_tests build/conceal

- name: Upload To GH Artifacts
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -213,6 +302,11 @@ jobs:
cd build/conceal
./system_tests

- name: unit_tests
run: |
cd build/tests
ctest -R UnitTests --output-on-failure

build-ubuntu20-clang:
name: Ubuntu 20.04 clang
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -247,7 +341,7 @@ jobs:
mv build/src/concealwallet build/conceal
mv build/src/optimizer build/conceal
mv build/src/walletd build/conceal
mv build/tests/*_tests build/conceal
cp build/tests/*_tests build/conceal

- name: Upload To GH Artifacts
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -278,6 +372,11 @@ jobs:
cd build/conceal
./system_tests

- name: unit_tests
run: |
cd build/tests
ctest -R UnitTests --output-on-failure

build-macos11:
name: macOS
runs-on: macos-11
Expand Down Expand Up @@ -311,7 +410,7 @@ jobs:
mv build/src/concealwallet build/conceal
mv build/src/optimizer build/conceal
mv build/src/walletd build/conceal
mv build/tests/*_tests build/conceal
cp build/tests/*_tests build/conceal

- name: Upload To GH Artifacts
uses: actions/upload-artifact@v2
Expand All @@ -336,3 +435,8 @@ jobs:
run: |
cd build/conceal
./performance_tests

- name: unit_tests
run: |
cd build/tests
ctest -R UnitTests --output-on-failure
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: Windows
runs-on: windows-2019
env:
BOOST_ROOT: C:/hostedtoolcache/windows/Boost/1.72.0/x86_64
BOOST_ROOT: C:/local/boost_1_72_0
steps:
- uses: actions/checkout@master

Expand Down
34 changes: 14 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,22 @@
sudo: true
dist: focal
language: cpp

matrix:
include:
branches:
only:
- master
- travis

# Ubuntu, g++-6
- os: linux
dist: xenial
compiler: gcc
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
packages:
- libboost-all-dev
- g++-6
env:
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
- LABEL="linux"
- _DEPLOY="true"
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
packages:
- libboost-all-dev
- g++

script:
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release -DSTATIC=true ..
- make
- make -j2
14 changes: 11 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if(APPLE OR FREEBSD)
enable_language(ASM)
endif()

if(MSVC)
if(MSVC OR MINGW)
include_directories(src/Platform/Windows)
elseif(APPLE)
include_directories(src/Platform/OSX)
Expand Down Expand Up @@ -82,6 +82,10 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ARCH_FLAG}")

set(STATIC ${MSVC} CACHE BOOL "Link libraries statically")

if(MINGW AND STATIC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libstdc++ -static-libgcc")
endif()

if(MSVC)
add_definitions("/bigobj /MP /W3 /GS- /D_CRT_SECURE_NO_WARNINGS /wd4996 /wd4345 /D_WIN32_WINNT=0x0600 /DWIN32_LEAN_AND_MEAN /DGTEST_HAS_TR1_TUPLE=0 /D_VARIADIC_MAX=8 /D__SSE4_1__")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /STACK:10485760")
Expand Down Expand Up @@ -120,7 +124,7 @@ else()
set(C_WARNINGS "-Waggregate-return -Wnested-externs -Wold-style-definition -Wstrict-prototypes")
set(CXX_WARNINGS "-Wno-reorder -Wno-missing-field-initializers")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11 ${MINGW_FLAG} ${WARNINGS} ${C_WARNINGS}")
if(NOT APPLE)
if(NOT APPLE AND NOT MINGW)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 ${MINGW_FLAG} ${WARNINGS} ${CXX_WARNINGS}")
Expand Down Expand Up @@ -151,7 +155,7 @@ find_package(Boost 1.55 REQUIRED COMPONENTS system filesystem thread date_time c
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})

if(MINGW)
set(Boost_LIBRARIES "${Boost_LIBRARIES};ws2_32;mswsock")
set(Boost_LIBRARIES "${Boost_LIBRARIES};ws2_32;mswsock;bcrypt")
elseif(APPLE)
set(Boost_LIBRARIES "${Boost_LIBRARIES}")
elseif(NOT MSVC)
Expand Down Expand Up @@ -199,5 +203,9 @@ else()
endif()
endif()

if(MINGW AND STATIC)
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-Bstatic,--whole-archive -lwinpthread -Wl,--no-whole-archive")
endif()

add_subdirectory(external)
add_subdirectory(src)
4 changes: 4 additions & 0 deletions include/IWalletLegacy.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ class IWalletLegacyObserver {
virtual void externalTransactionCreated(TransactionId transactionId) {}
virtual void sendTransactionCompleted(TransactionId transactionId, std::error_code result) {}
virtual void transactionUpdated(TransactionId transactionId) {}
virtual void depositUpdated(const DepositId& depositId) {}
virtual void depositsUpdated(const std::vector<DepositId>& depositIds) {}
};

Expand Down Expand Up @@ -152,8 +153,11 @@ class IWalletLegacy {
virtual std::list<TransactionOutputInformation> selectFusionTransfersToSend(uint64_t threshold, size_t minInputCount, size_t maxInputCount) = 0;
virtual TransactionId sendFusionTransaction(const std::list<TransactionOutputInformation>& fusionInputs, uint64_t fee, const std::string& extra = "", uint64_t mixIn = 0, uint64_t unlockTimestamp = 0) = 0;
virtual TransactionId deposit(uint32_t term, uint64_t amount, uint64_t fee, uint64_t mixIn = 0) = 0;
virtual TransactionId withdrawDeposit(const DepositId& depositId, uint64_t fee) = 0;
virtual TransactionId withdrawDeposits(const std::vector<DepositId>& depositIds, uint64_t fee) = 0;
virtual std::error_code cancelTransaction(size_t transferId) = 0;
virtual Deposit get_deposit(DepositId depositId) = 0;


};

Expand Down
12 changes: 10 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ file(GLOB_RECURSE Http HTTP/*)
file(GLOB_RECURSE InProcessNode InProcessNode/*)
file(GLOB_RECURSE Logging Logging/*)
file(GLOB_RECURSE Optimizer Optimizer/*)
file(GLOB_RECURSE Mnemonics Mnemonics/*)
file(GLOB_RECURSE NodeRpcProxy NodeRpcProxy/*)
file(GLOB_RECURSE P2p P2p/*)
file(GLOB_RECURSE Rpc Rpc/*)
Expand All @@ -23,7 +24,7 @@ file(GLOB_RECURSE JsonRpcServer JsonRpcServer/*)
file(GLOB_RECURSE PaymentGate PaymentGate/*)
file(GLOB_RECURSE PaymentGateService PaymentGateService/*)

if(MSVC)
if(MSVC OR MINGW)
file(GLOB_RECURSE System System/* Platform/Windows/System/*)
elseif(APPLE)
file(GLOB_RECURSE System System/* Platform/OSX/System/*)
Expand All @@ -40,6 +41,7 @@ add_library(CryptoNoteCore STATIC ${CryptoNoteCore})
add_library(Http STATIC ${Http})
add_library(InProcessNode STATIC ${InProcessNode})
add_library(Logging STATIC ${Logging})
add_library(Mnemonics STATIC ${Mnemonics})
add_library(NodeRpcProxy STATIC ${NodeRpcProxy})
add_library(Rpc STATIC ${Rpc})
add_library(P2P STATIC ${CryptoNoteProtocol} ${P2p})
Expand All @@ -59,8 +61,14 @@ if (MSVC)
target_link_libraries(System ws2_32)
endif ()

if (MINGW)
target_link_libraries(Common dnsapi)
target_link_libraries(P2P bcrypt)
target_link_libraries(System ws2_32)
endif ()

target_link_libraries(Daemon CryptoNoteCore P2P Rpc System Http Logging Common crypto libminiupnpc-static BlockchainExplorer ${Boost_LIBRARIES} Serialization)
target_link_libraries(SimpleWallet Wallet NodeRpcProxy Transfers Rpc Http CryptoNoteCore System Logging Common crypto ${Boost_LIBRARIES} Serialization)
target_link_libraries(SimpleWallet Wallet NodeRpcProxy Transfers Rpc Http CryptoNoteCore System Logging Common crypto ${Boost_LIBRARIES} Serialization Mnemonics)
target_link_libraries(PaymentGateService PaymentGate JsonRpcServer Wallet NodeRpcProxy Transfers CryptoNoteCore crypto P2P Rpc Http System Logging Common InProcessNode libminiupnpc-static BlockchainExplorer ${Boost_LIBRARIES} Serialization)
target_link_libraries(Optimizer PaymentGate Rpc Http CryptoNoteCore Logging Serialization crypto System Common ${Boost_LIBRARIES})

Expand Down
5 changes: 5 additions & 0 deletions src/Common/CommandLine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,9 @@ namespace command_line
const arg_descriptor<bool> arg_help = {"help", "Produce help message"};
const arg_descriptor<bool> arg_version = {"version", "Output version information"};
const arg_descriptor<std::string> arg_data_dir = {"data-dir", "Specify data directory"};
const command_line::arg_descriptor<bool> arg_testnet_on = {
"testnet",
"Use testnet instead of mainnet",
false
};
}
1 change: 1 addition & 0 deletions src/Common/CommandLine.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,5 @@ namespace command_line
extern const arg_descriptor<bool> arg_help;
extern const arg_descriptor<bool> arg_version;
extern const arg_descriptor<std::string> arg_data_dir;
extern const command_line::arg_descriptor<bool> arg_testnet_on;
}
Loading