fix: compile with new device monero functionality

This commit is contained in:
moneroexamples 2018-03-05 08:07:27 +08:00
parent 349f0a7f4d
commit 605c6caf28
3 changed files with 9 additions and 4 deletions

View file

@ -110,12 +110,15 @@ set(LIBRARIES
blocks blocks
lmdb lmdb
ringct ringct
device
common common
mnemonics mnemonics
easylogging easylogging
checkpoints checkpoints
version version
epee_readline
epee epee
readline
${Boost_LIBRARIES} ${Boost_LIBRARIES}
pthread pthread
unbound unbound

View file

@ -28,8 +28,8 @@
# (c) 2014-2016 cpp-ethereum contributors. # (c) 2014-2016 cpp-ethereum contributors.
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
set(LIBS common;blocks;cryptonote_basic;cryptonote_core; set(LIBS common;blocks;cryptonote_basic;cryptonote_core;epee_readline;
cryptonote_protocol;daemonizer;mnemonics;epee;lmdb; cryptonote_protocol;daemonizer;mnemonics;epee;lmdb;device;
blockchain_db;ringct;wallet;cncrypto;easylogging;version;checkpoints) blockchain_db;ringct;wallet;cncrypto;easylogging;version;checkpoints)
set(Xmr_INCLUDE_DIRS "${CPP_MONERO_DIR}") set(Xmr_INCLUDE_DIRS "${CPP_MONERO_DIR}")

View file

@ -937,14 +937,16 @@ decode_ringct(rct::rctSig const& rv,
amount = rct::decodeRctSimple(rv, amount = rct::decodeRctSimple(rv,
rct::sk2rct(scalar1), rct::sk2rct(scalar1),
i, i,
mask); mask,
hw::get_device("default"));
break; break;
case rct::RCTTypeFull: case rct::RCTTypeFull:
case rct::RCTTypeFullBulletproof: case rct::RCTTypeFullBulletproof:
amount = rct::decodeRct(rv, amount = rct::decodeRct(rv,
rct::sk2rct(scalar1), rct::sk2rct(scalar1),
i, i,
mask); mask,
hw::get_device("default"));
break; break;
default: default:
cerr << "Unsupported rct type: " << rv.type << '\n'; cerr << "Unsupported rct type: " << rv.type << '\n';