Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

c++17 and compiler pinning #7107

Merged
merged 93 commits into from
Apr 25, 2019
Merged
Show file tree
Hide file tree
Changes from 76 commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
acd22cd
update build scripts
larryk85 Apr 10, 2019
29520ad
Pull over from feature/cpp17 branch and new stuff for pinning the com…
larryk85 Apr 10, 2019
b1739bb
use libcxxabi
larryk85 Apr 10, 2019
637afd9
small changes for clang 8 build
larryk85 Apr 10, 2019
dd226ab
revert missed commented out mongo stuff and revert chainbase change
larryk85 Apr 11, 2019
62109ed
use boost 1.68
larryk85 Apr 11, 2019
4e4179a
revert back to boost 1.67 for now
larryk85 Apr 11, 2019
b9e37aa
Addressed some change requests
larryk85 Apr 11, 2019
4597fed
Add new option for pinning
larryk85 Apr 11, 2019
14dc234
undo mongo comment out
larryk85 Apr 11, 2019
e146709
add cmake variable for compiler pinning
larryk85 Apr 11, 2019
4b3de8a
fix bash issue and add -p to pipeline.yml
larryk85 Apr 12, 2019
da1cd08
update chainbase submodule
larryk85 Apr 12, 2019
0903cb8
Update CMakeLists.txt
larryk85 Apr 12, 2019
407e2f7
reverting libc++ changes
larryk85 Apr 14, 2019
f6ac7f6
hopefully close to finished with pinning
larryk85 Apr 17, 2019
9055d81
update script
larryk85 Apr 17, 2019
e046c0a
merge upstream
larryk85 Apr 17, 2019
ba4e17d
small changes for gcc build
larryk85 Apr 17, 2019
5a11c0b
update all other build scripts
larryk85 Apr 17, 2019
b9f058a
use curl instead of wget
larryk85 Apr 17, 2019
5937ffd
fix rm
larryk85 Apr 17, 2019
eeb8b80
export LD_LIBRARY_PATH
larryk85 Apr 17, 2019
408f5eb
fix up darwin
larryk85 Apr 17, 2019
cbc87cb
export correct lib paths
larryk85 Apr 17, 2019
846de6d
update submodules
larryk85 Apr 17, 2019
dd0a6cd
patch linux-unwind.h
larryk85 Apr 17, 2019
2609c0c
fix patch and bump timeout for build
larryk85 Apr 17, 2019
397e266
fix missing tmp directory centos
larryk85 Apr 17, 2019
988cebf
add back fix for auto_ptr to unique_ptr
larryk85 Apr 17, 2019
e4bfd46
update for Apple
larryk85 Apr 17, 2019
80ed27b
update wabt/no-clobber
larryk85 Apr 17, 2019
f07d14a
resolved requested changes
larryk85 Apr 18, 2019
b0d0553
don't think we need to add the libstdc++ any more, trying it out
larryk85 Apr 19, 2019
dd2b2e7
updating submodules
larryk85 Apr 19, 2019
fcce555
merging forced-replay
larryk85 Apr 19, 2019
06a7f31
fixing other merging issues
larryk85 Apr 19, 2019
0348ca7
update pipeline.yml
larryk85 Apr 19, 2019
0d7f14f
add missing include dir for linux
larryk85 Apr 19, 2019
fc977c2
I was wrong still need the special case for libstdc++
larryk85 Apr 19, 2019
bc532d9
Still not statically linking after merge
larryk85 Apr 20, 2019
4ac7570
hopefully finished
larryk85 Apr 20, 2019
6bb66a6
Update CMakeLists.txt
larryk85 Apr 20, 2019
f630b3d
Update eosio_build_fedora.sh
larryk85 Apr 20, 2019
64020d6
use script directory variable
larryk85 Apr 20, 2019
5013e6e
Merge branch 'feature/cpp17_compiler_pinning' of github.com:eosio/eos…
larryk85 Apr 20, 2019
627d351
gitignore missed toolchain file
larryk85 Apr 20, 2019
128918d
update toolchain file
larryk85 Apr 20, 2019
436651d
switch over to libcxx and no mongo-cxx-driver
larryk85 Apr 22, 2019
7209b24
add cd to tmp dir
larryk85 Apr 22, 2019
5f4fafc
forgot $ for PIN_COMPILER
larryk85 Apr 22, 2019
b793f31
remove depth 1 from cloning; missing commits
larryk85 Apr 22, 2019
2734def
use SRC directory
larryk85 Apr 22, 2019
2016047
merged forced-replay
larryk85 Apr 22, 2019
00d665d
issues with tar
larryk85 Apr 22, 2019
6ebb635
remove j from tar
larryk85 Apr 22, 2019
88077b7
just going to use git for llvm4
larryk85 Apr 22, 2019
cdb47a5
mistake keystrokes
larryk85 Apr 22, 2019
b34a6bd
only build host for clang and fix dumb mistake
larryk85 Apr 23, 2019
1729f49
long day
larryk85 Apr 23, 2019
920d6aa
still a long day
larryk85 Apr 23, 2019
033187c
clean up toolchain file
larryk85 Apr 23, 2019
1a54110
add force build flag and build mongo flag
larryk85 Apr 23, 2019
9e81631
add force flag temporarily
larryk85 Apr 23, 2019
77a68c5
add clang8 bin to path for boost builds
larryk85 Apr 23, 2019
82dac0d
merged forced-replay
larryk85 Apr 23, 2019
5b342dc
modified .pipelinebranch
larryk85 Apr 23, 2019
f123138
addressed changes
larryk85 Apr 23, 2019
caf409e
pipeline changes to use new images
Apr 23, 2019
c520f37
addressed comments
larryk85 Apr 24, 2019
4228e97
forgot fi
larryk85 Apr 24, 2019
ccd0be4
left over /
larryk85 Apr 24, 2019
bd97221
remove force flag from pipeline.yml
larryk85 Apr 24, 2019
745b0bb
adding back -f until base images are built correctly
larryk85 Apr 24, 2019
5a6aa49
merge develop
larryk85 Apr 24, 2019
6909665
disable mongo tests
larryk85 Apr 24, 2019
b8fee49
remove force flag and use new mac builder
larryk85 Apr 24, 2019
3d7cc2a
point tests to new mac builder and remove remnant flags to cmake
larryk85 Apr 24, 2019
d3d7416
testing anka
Apr 25, 2019
fcdd347
testing anka
Apr 25, 2019
04fc1d6
testing anka
Apr 25, 2019
061079f
testing anka
Apr 25, 2019
a0194af
testing anka
Apr 25, 2019
cf15049
testing anka
Apr 25, 2019
9ca743d
testing anka
Apr 25, 2019
dee9f10
Anka finalization
Apr 25, 2019
1f2266d
Anka finalization
Apr 25, 2019
75f69a0
Anka finalization
Apr 25, 2019
d326263
Anka finalization
Apr 25, 2019
0cbead9
Anka finalization
Apr 25, 2019
45e52ea
Anka revert
Apr 25, 2019
22db396
Anka reverted
Apr 25, 2019
abc90ff
Merge branch 'develop' into feature/cpp17_compiler_pinning
larryk85 Apr 25, 2019
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
52 changes: 26 additions & 26 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
steps:
- command: | # Amazon Linux 2 Build
echo "+++ :hammer: Building"
./scripts/eosio_build.sh -y
./scripts/eosio_build.sh -y -P -f
echo "--- :compression: Compressing build directory"
tar -pczf build.tar.gz build
if [[ ! -f build.tar.gz ]]; then echo 'ERROR: No build.tar.gz artifact found!' && exit 1; fi
Expand All @@ -17,14 +17,14 @@ steps:
region: "us-west-2"
docker#v2.1.0:
debug: true
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:amazonlinux2_2-2"
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:amazonlinux2_2-3"
propagate-environment: true
workdir: /data/job
timeout: 60
timeout: 120

- command: | # CentOS 7 Build
echo "+++ :hammer: Building"
./scripts/eosio_build.sh -y
./scripts/eosio_build.sh -y -P -f
echo "--- :compression: Compressing build directory"
tar -pczf build.tar.gz build
if [[ ! -f build.tar.gz ]]; then echo 'ERROR: No build.tar.gz artifact found!' && exit 1; fi
Expand All @@ -40,14 +40,14 @@ steps:
region: "us-west-2"
docker#v2.1.0:
debug: true
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:centos7_2-2"
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:centos7_2-3"
propagate-environment: true
workdir: /data/job
timeout: 60
timeout: 120

- command: | # Ubuntu 16.04 Build
echo "+++ :hammer: Building"
./scripts/eosio_build.sh -y
./scripts/eosio_build.sh -y -P -f
echo "--- :compression: Compressing build directory"
tar -pczf build.tar.gz build
if [[ ! -f build.tar.gz ]]; then echo 'ERROR: No build.tar.gz artifact found!' && exit 1; fi
Expand All @@ -63,14 +63,14 @@ steps:
region: "us-west-2"
docker#v2.1.0:
debug: true
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:ubuntu16_2-2"
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:ubuntu16_2-3"
propagate-environment: true
workdir: /data/job
timeout: 60
timeout: 120

- command: | # Ubuntu 18.04 Build
echo "+++ :hammer: Building"
./scripts/eosio_build.sh -y
./scripts/eosio_build.sh -y -P -f
echo "--- :compression: Compressing build directory"
tar -pczf build.tar.gz build
if [[ ! -f build.tar.gz ]]; then echo 'ERROR: No build.tar.gz artifact found!' && exit 1; fi
Expand All @@ -86,18 +86,18 @@ steps:
region: "us-west-2"
docker#v2.1.0:
debug: true
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:ubuntu18_2-2"
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:ubuntu18_2-3"
propagate-environment: true
workdir: /data/job
timeout: 60
timeout: 120

- command: | # macOS Mojave Build
echo "--- Creating symbolic link to job directory :file_folder:"
sleep 5
ln -s "$(pwd)" /data/job
cd /data/job
echo "+++ Building :hammer:"
./scripts/eosio_build.sh -y
./scripts/eosio_build.sh -y -P -f
echo "--- Compressing build directory :compression:"
tar -pczf build.tar.gz build
if [[ ! -f build.tar.gz ]]; then echo 'ERROR: No build.tar.gz artifact found!' && exit 1; fi
Expand All @@ -106,7 +106,7 @@ steps:
- "role=builder-v2-1"
- "os=mojave"
artifact_paths: "build.tar.gz"
timeout: 60
timeout: 120

- wait

Expand All @@ -127,7 +127,7 @@ steps:
region: "us-west-2"
docker#v2.1.0:
debug: true
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:amazonlinux2_2-2"
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:amazonlinux2_2-3"
propagate-environment: true
workdir: /data/job
timeout: 60
Expand All @@ -148,7 +148,7 @@ steps:
region: "us-west-2"
docker#v2.1.0:
debug: true
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:amazonlinux2_2-2"
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:amazonlinux2_2-3"
propagate-environment: true
workdir: /data/job
timeout: 60
Expand All @@ -170,7 +170,7 @@ steps:
region: "us-west-2"
docker#v2.1.0:
debug: true
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:centos7_2-2"
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:centos7_2-3"
propagate-environment: true
workdir: /data/job
timeout: 60
Expand All @@ -191,7 +191,7 @@ steps:
region: "us-west-2"
docker#v2.1.0:
debug: true
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:centos7_2-2"
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:centos7_2-3"
propagate-environment: true
workdir: /data/job
timeout: 60
Expand All @@ -213,7 +213,7 @@ steps:
region: "us-west-2"
docker#v2.1.0:
debug: true
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:ubuntu16_2-2"
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:ubuntu16_2-3"
propagate-environment: true
workdir: /data/job
timeout: 60
Expand All @@ -234,7 +234,7 @@ steps:
region: "us-west-2"
docker#v2.1.0:
debug: true
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:ubuntu16_2-2"
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:ubuntu16_2-3"
propagate-environment: true
workdir: /data/job
timeout: 60
Expand All @@ -256,7 +256,7 @@ steps:
region: "us-west-2"
docker#v2.1.0:
debug: true
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:ubuntu18_2-2"
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:ubuntu18_2-3"
propagate-environment: true
workdir: /data/job
timeout: 60
Expand All @@ -277,7 +277,7 @@ steps:
region: "us-west-2"
docker#v2.1.0:
debug: true
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:ubuntu18_2-2"
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:ubuntu18_2-3"
propagate-environment: true
workdir: /data/job
timeout: 60
Expand Down Expand Up @@ -336,7 +336,7 @@ steps:
region: "us-west-2"
docker#v2.1.0:
debug: true
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:centos7_2-2"
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:centos7_2-3"
propagate-environment: true
workdir: /data/job
env:
Expand Down Expand Up @@ -364,7 +364,7 @@ steps:
region: "us-west-2"
docker#v2.1.0:
debug: true
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:ubuntu16_2-2"
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:ubuntu16_2-3"
propagate-environment: true
workdir: /data/job
env:
Expand Down Expand Up @@ -392,7 +392,7 @@ steps:
region: "us-west-2"
docker#v2.1.0:
debug: true
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:ubuntu18_2-2"
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:ubuntu18_2-3"
propagate-environment: true
workdir: /data/job
env:
Expand Down Expand Up @@ -435,4 +435,4 @@ steps:
label: "Git Submodule Regression Check"
agents:
queue: "automation-large-builder-fleet"
timeout: 5
timeout: 5
2 changes: 1 addition & 1 deletion .pipelinebranch
Original file line number Diff line number Diff line change
@@ -1 +1 @@
use-protocol-features-sync-nodes
protocol-features-sync-nodes
24 changes: 11 additions & 13 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required( VERSION 3.5 )
cmake_minimum_required( VERSION 3.8 )

project( EOSIO )
include(CTest) # suppresses DartConfiguration.tcl error
Expand All @@ -25,7 +25,7 @@ include( InstallDirectoryPermissions )
include( MASSigning )

set( BLOCKCHAIN_NAME "EOSIO" )
set( CMAKE_CXX_STANDARD 14 )
set( CMAKE_CXX_STANDARD 17 )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also need to change the compiler check that's a few lines down from here

set( CMAKE_CXX_EXTENSIONS ON )
set( CXX_STANDARD_REQUIRED ON)

Expand All @@ -49,15 +49,15 @@ set( INSTALLER_APP_ID "68ad7005-8eee-49c9-95ce-9eed97e5b347" )

# http://stackoverflow.com/a/18369825
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 6.0)
message(FATAL_ERROR "GCC version must be at least 6.0!")
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)
message(FATAL_ERROR "GCC version must be at least 7.0!")
endif()
if ("${CMAKE_GENERATOR}" STREQUAL "Ninja")
add_compile_options(-fdiagnostics-color=always)
endif()
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang")
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.0)
message(FATAL_ERROR "Clang version must be at least 4.0!")
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0)
message(FATAL_ERROR "Clang version must be at least 5.0!")
endif()
if ("${CMAKE_GENERATOR}" STREQUAL "Ninja")
add_compile_options(-fcolor-diagnostics)
Expand Down Expand Up @@ -112,12 +112,10 @@ FIND_PACKAGE(Boost 1.67 REQUIRED COMPONENTS
unit_test_framework
iostreams)

# Some new stdlibc++s will #error on <experimental/string_view>; a problem for boost pre-1.69
if( APPLE AND UNIX )
add_definitions(-DBOOST_ASIO_DISABLE_STD_EXPERIMENTAL_STRING_VIEW)
endif()
add_definitions(-DBOOST_ASIO_DISABLE_STD_EXPERIMENTAL_STRING_VIEW)

set(THREADS_PREFER_PTHREAD_FLAG 1)
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
set(THREADS_PREFER_PTHREAD_FLAG TRUE)
find_package(Threads)
link_libraries(Threads::Threads)

Expand Down Expand Up @@ -159,11 +157,11 @@ else( WIN32 ) # Apple AND Linux
if( APPLE )
# Apple Specific Options Here
message( STATUS "Configuring EOSIO on OS X" )
set( CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-deprecated-declarations" )
set( CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_CXX_FLAGS} -Wall -Wno-deprecated-declarations" )
else( APPLE )
# Linux Specific Options Here
message( STATUS "Configuring EOSIO on Linux" )
set( CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -Wall" )
set( CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_CXX_FLAGS} -Wall" )
if ( FULL_STATIC_BUILD )
set( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libstdc++ -static-libgcc")
endif ( FULL_STATIC_BUILD )
Expand Down
1 change: 1 addition & 0 deletions libraries/wasm-jit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ include_directories(${WAVM_INCLUDE_DIR})
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address")
# endif()

set(CMAKE_CXX_STANDARD 11)
option(WAVM_METRICS_OUTPUT "controls printing the timings of some operations to stdout" OFF)
if(WAVM_METRICS_OUTPUT)
add_definitions("-DWAVM_METRICS_OUTPUT=1")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ class se_wallet final : public wallet_api {
string create_key(string key_type) override;
bool remove_key(string key) override;

optional<signature_type> try_sign_digest(const digest_type digest, const public_key_type public_key) override;
fc::optional<signature_type> try_sign_digest(const digest_type digest, const public_key_type public_key) override;

private:
std::unique_ptr<detail::se_wallet_impl> my;
};

}}
}}
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class soft_wallet final : public wallet_api

/* Attempts to sign a digest via the given public_key
*/
optional<signature_type> try_sign_digest( const digest_type digest, const public_key_type public_key ) override;
fc::optional<signature_type> try_sign_digest( const digest_type digest, const public_key_type public_key ) override;

std::shared_ptr<detail::soft_wallet_impl> my;
void encrypt_keys();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class wallet_api

/** Returns a signature given the digest and public_key, if this wallet can sign via that public key
*/
virtual optional<signature_type> try_sign_digest( const digest_type digest, const public_key_type public_key ) = 0;
virtual fc::optional<signature_type> try_sign_digest( const digest_type digest, const public_key_type public_key ) = 0;
};

}}
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ class yubihsm_wallet final : public wallet_api {
string create_key(string key_type) override;
bool remove_key(string key) override;

optional<signature_type> try_sign_digest(const digest_type digest, const public_key_type public_key) override;
fc::optional<signature_type> try_sign_digest(const digest_type digest, const public_key_type public_key) override;

private:
std::unique_ptr<detail::yubihsm_wallet_impl> my;
};

}}
}}
8 changes: 4 additions & 4 deletions plugins/wallet_plugin/se_wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,10 @@ struct se_wallet_impl {
return pub;
}

optional<signature_type> try_sign_digest(const digest_type d, const public_key_type public_key) {
fc::optional<signature_type> try_sign_digest(const digest_type d, const public_key_type public_key) {
auto it = _keys.find(public_key);
if(it == _keys.end())
return optional<signature_type>{};
return fc::optional<signature_type>{};

fc::ecdsa_sig sig = ECDSA_SIG_new();
CFErrorRef error = nullptr;
Expand Down Expand Up @@ -370,8 +370,8 @@ bool se_wallet::remove_key(string key) {
return my->remove_key(key);
}

optional<signature_type> se_wallet::try_sign_digest(const digest_type digest, const public_key_type public_key) {
fc::optional<signature_type> se_wallet::try_sign_digest(const digest_type digest, const public_key_type public_key) {
return my->try_sign_digest(digest, public_key);
}

}}
}}
10 changes: 5 additions & 5 deletions plugins/wallet_plugin/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,18 +120,18 @@ class soft_wallet_impl

string get_wallet_filename() const { return _wallet_filename; }

optional<private_key_type> try_get_private_key(const public_key_type& id)const
fc::optional<private_key_type> try_get_private_key(const public_key_type& id)const
{
auto it = _keys.find(id);
if( it != _keys.end() )
return it->second;
return optional<private_key_type>();
return fc::optional<private_key_type>();
}

optional<signature_type> try_sign_digest( const digest_type digest, const public_key_type public_key ) {
fc::optional<signature_type> try_sign_digest( const digest_type digest, const public_key_type public_key ) {
auto it = _keys.find(public_key);
if( it == _keys.end() )
return optional<signature_type>{};
return fc::optional<signature_type>{};
return it->second.sign(digest);
}

Expand Down Expand Up @@ -401,7 +401,7 @@ private_key_type soft_wallet::get_private_key( public_key_type pubkey )const
return my->get_private_key( pubkey );
}

optional<signature_type> soft_wallet::try_sign_digest( const digest_type digest, const public_key_type public_key ) {
fc::optional<signature_type> soft_wallet::try_sign_digest( const digest_type digest, const public_key_type public_key ) {
return my->try_sign_digest(digest, public_key);
}

Expand Down
4 changes: 2 additions & 2 deletions plugins/wallet_plugin/wallet_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ wallet_manager::sign_transaction(const chain::signed_transaction& txn, const fla
bool found = false;
for (const auto& i : wallets) {
if (!i.second->is_locked()) {
optional<signature_type> sig = i.second->try_sign_digest(stxn.sig_digest(id, stxn.context_free_data), pk);
fc::optional<signature_type> sig = i.second->try_sign_digest(stxn.sig_digest(id, stxn.context_free_data), pk);
if (sig) {
stxn.signatures.push_back(*sig);
found = true;
Expand All @@ -260,7 +260,7 @@ wallet_manager::sign_digest(const chain::digest_type& digest, const public_key_t
try {
for (const auto& i : wallets) {
if (!i.second->is_locked()) {
optional<signature_type> sig = i.second->try_sign_digest(digest, key);
fc::optional<signature_type> sig = i.second->try_sign_digest(digest, key);
if (sig)
return *sig;
}
Expand Down
Loading