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

remove get_named_account_balances #1135 #1153

Closed
wants to merge 120 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
fedc883
Initial work for openssl-1.1 support
xeroc Jan 5, 2018
f63df2b
Removed blind_sign API calls
pmconrad Apr 26, 2018
ebdaa52
Completely removed unused deterministic_openssl_rand
pmconrad Apr 26, 2018
a98f307
change project description
oxarbitrage May 29, 2018
21562e7
initial support account names or ids in api calls
oxarbitrage May 29, 2018
676ed17
Merge pull request #988 from bitshares/oxarbitrage-patch-1
oxarbitrage May 30, 2018
ed81963
node.cpp: Check the attacker/buggy client before updating items ids
RichardWeiYang May 30, 2018
b5950f9
Merge pull request #921 from pmconrad/openssl-1.1-support
oxarbitrage May 31, 2018
ffa9ea9
bump fc for openssl1.1
oxarbitrage May 31, 2018
832a76a
Merge pull request #1007 from RichardWeiYang/develop
oxarbitrage May 31, 2018
26f9914
Merge pull request #1008 from oxarbitrage/bumpssl1.1
oxarbitrage May 31, 2018
30eda4a
readd const
oxarbitrage Jun 1, 2018
82ce43b
Cleanup logging in account.cpp
abitmore Jun 1, 2018
5965611
fix wrong variable name in get_account_balances
oxarbitrage Jun 1, 2018
0f656bd
Update asset_object::amount_to_string impl
abitmore Jun 2, 2018
a865c5d
Fix wallet in-code docs
abitmore Jun 3, 2018
1c5bcc1
Adding index on short_backing_asset
jmjatlanta Jun 4, 2018
6b272e6
name or string support to get_accounts
oxarbitrage Jun 4, 2018
c0fd540
name or string support to get_account_references
oxarbitrage Jun 4, 2018
5fd073e
Merge pull request #1010 from bitshares/abitmore-patch-1
oxarbitrage Jun 5, 2018
2d4c55f
me or string support to get_vesting_balances
oxarbitrage Jun 5, 2018
c775176
name or string support to get_margin_positions
oxarbitrage Jun 5, 2018
33e4a92
name or string support to get_witness_by_account
oxarbitrage Jun 5, 2018
557b351
Modified Dockerfile to work with new docker cloud version
pmconrad Jun 5, 2018
e6cf0ab
name or id support to get_committee_member_by_account
oxarbitrage Jun 5, 2018
d2be504
name or id support to get_workers_by_account
oxarbitrage Jun 5, 2018
10203cc
Merge pull request #1025 from pmconrad/1022_ci_develop
oxarbitrage Jun 6, 2018
e2ec3a0
name or id support to get_proposed_transactions
oxarbitrage Jun 6, 2018
8934708
name or id support to withdraw calls
oxarbitrage Jun 6, 2018
3d5e716
Merge pull request #1015 from bitshares/abitmore-patch-3
oxarbitrage Jun 7, 2018
1e80938
add name or string support to api.cpp calls
oxarbitrage Jun 7, 2018
bc4f788
call database_api from api fix by jmjatlanta
oxarbitrage Jun 7, 2018
d87c73f
add get_account_id_from_string inside try
oxarbitrage Jun 7, 2018
3081938
remove question from code
oxarbitrage Jun 7, 2018
9d54a5c
Add fail_reason to proposal object
jmjatlanta Jun 8, 2018
6df2f4b
Fixed compiler warnings signed/unsigned
jmjatlanta Jun 8, 2018
55834fc
added get_transaction_hex_without_sig method
windycrypto Jun 9, 2018
18ea847
added suggest-brain-key option for cli_wallet
windycrypto Jun 9, 2018
b65b518
Re-implemented solution
jmjatlanta Jun 11, 2018
ef8cfba
Test cleanup
jmjatlanta Jun 11, 2018
4a2f333
fix typo
windycrypto Jun 12, 2018
064b5f0
added more test cases
windycrypto Jun 12, 2018
3f9d04e
Merge pull request #1036 from jmjatlanta/issue_730
jmjatlanta Jun 12, 2018
62a5f41
ElastcSearch test cases framework
oxarbitrage Jun 12, 2018
46929a5
Merge pull request #1038 from cifer-lee/issue1013
oxarbitrage Jun 12, 2018
15e8430
Merge pull request #1055 from bitshares/release
abitmore Jun 15, 2018
715b6a3
Merge pull request #925 from oxarbitrage/hotfix-2.0.180425
abitmore May 21, 2018
cfed239
Merge pull request #1046 from oxarbitrage/update_boost
oxarbitrage Jun 12, 2018
044ca27
Merge branch 'develop' into jmj_issue_960
jmjatlanta Jun 15, 2018
5b0c9f5
Merge pull request #1062 from bitshares/cherry-pick-docs-change
abitmore Jun 15, 2018
25b3548
Use new index to iterate through assets backed by a certain asset.
jmjatlanta Jun 15, 2018
6a7b9b0
Use the new index to find assets that are backed by this asset.
jmjatlanta Jun 16, 2018
0a73de3
Replaced external json impl with fc::json
pmconrad Jun 17, 2018
d841959
Merge pull request #2 from pmconrad/elasticsearch_tests
oxarbitrage Jun 17, 2018
83af94e
Merge pull request #1039 from cifer-lee/issue1011
jmjatlanta Jun 18, 2018
e921b54
fix logic errors using new index
jmjatlanta Jun 18, 2018
79b0337
fix bitasset hardfork test
jmjatlanta Jun 18, 2018
dba2761
move test to new executable
oxarbitrage Jun 18, 2018
9151128
remove commented includes
oxarbitrage Jun 18, 2018
9d06f11
remove unused constants
windycrypto Jun 19, 2018
fb44020
merge impacted into db_notify
Jun 19, 2018
6fda1bc
remove .ds_store
Jun 19, 2018
5eb201d
Add: Require 64-bit OS
ryanRfox Jun 19, 2018
be54a80
[Docker] Forward signals to bitshares process.
Zapata Jun 19, 2018
7d85b35
Fix p2p port to match Dockerfile.
Zapata Jun 19, 2018
2cee51d
Added test for amount_to_string
jmjatlanta Jun 18, 2018
4186549
More test cleanup
jmjatlanta Jun 18, 2018
55de465
Fix negative amount to string
abitmore Jun 19, 2018
2a45ed7
Merge pull request #1077 from Zapata/fix_gracefull_shutdown
oxarbitrage Jun 21, 2018
26f4d03
Merge pull request #1078 from Zapata/fix_port
oxarbitrage Jun 21, 2018
8ea50ca
Merge pull request #1076 from ryanRfox/1060-Update-docs-64-bit-OS-is-…
oxarbitrage Jun 21, 2018
9ec21b1
Merge pull request #1073 from xiangxn/merge-impacted
oxarbitrage Jun 21, 2018
11d0432
Merge pull request #1072 from cifer-lee/issue1034
oxarbitrage Jun 21, 2018
6ffb88c
Merge branch 'develop' into elasticsearch_tests
oxarbitrage Jun 21, 2018
e11bb80
Merge pull request #1012 from bitshares/abitmore-patch-2
oxarbitrage Jun 21, 2018
27064bb
Merge pull request #989 from oxarbitrage/issue969
oxarbitrage Jun 21, 2018
32800c2
Clarified comment
jmjatlanta Jun 22, 2018
eb13e71
Merge pull request #1047 from oxarbitrage/elasticsearch_tests
oxarbitrage Jun 22, 2018
cba93b8
Switched to using boost multiindex range
jmjatlanta Jun 22, 2018
ccd8ff2
Implemented idx.equal_range to avoid ugly lambda
jmjatlanta Jun 23, 2018
b66e1ea
Improve account maintenance performance #803
abitmore Jun 23, 2018
04ecfec
Short-cut long sequences of missed blocks
pmconrad Jun 22, 2018
5e42457
Capture fewer variables for lamdba
abitmore Jun 23, 2018
8f08ec9
Track is_voting in account stats, and code cleanup
abitmore Jun 23, 2018
27880b1
Merge pull request #1019 from bitshares/jmj_issue_960
jmjatlanta Jun 24, 2018
3c931a9
remove needless find()
jmjatlanta Jun 25, 2018
faba78d
Merge pull request #1085 from bitshares/803-maintenance-performance
abitmore Jun 25, 2018
4613b96
Merge pull request #1091 from bitshares/jmj_issue_1090
abitmore Jun 26, 2018
f1883d4
Count missed blocks only if total missed is less than 1 round
pmconrad Jun 27, 2018
b786715
Refactored count_missed_blocks into separate method
pmconrad Jun 27, 2018
710a910
Added unit tests
pmconrad Jun 27, 2018
4cb788e
Fixed indentation
pmconrad Jun 27, 2018
8ab9fbd
Renamed count_missed_blocks to update_witness_missed_blocks
pmconrad Jun 27, 2018
872f6b8
Minor optimization
pmconrad Jun 27, 2018
455fbf4
Merge pull request #1087 from pmconrad/1086_fix_missed_blocks_calcula…
oxarbitrage Jul 1, 2018
08b3848
Added test case for confidential transactions and range proof mantiss…
christophersanborn Jun 28, 2018
e0a7399
Changed range proof mantissa min_bits used by cli_wallet from 0 (auto…
christophersanborn Jul 2, 2018
d6cc634
Fixes to make Docker containers properly shutdown
Tydus Jul 4, 2018
6c5dcca
Make Docker send SIGINT instead of SIGTERM
Tydus Jul 4, 2018
0babe53
Code style (line length)
christophersanborn Jul 4, 2018
d09a347
Merge pull request #1115 from Tydus/master
abitmore Jul 5, 2018
4d5010d
Remove crypto_api from default list of allowed APIs. (issue #1123)
christophersanborn Jul 7, 2018
7666343
Merge pull request #1125 from christophersanborn/issue-1123
oxarbitrage Jul 7, 2018
4ea9cb4
remove double assert in object_id_type constructor
RichardWeiYang Jul 8, 2018
7fb2c86
Merge pull request #1128 from RichardWeiYang/develop
oxarbitrage Jul 8, 2018
3fdf652
Fix compiler warnings
abitmore Jul 9, 2018
f503701
set default quote asset_id to 1.3.1
RichardWeiYang Jul 9, 2018
a953466
Add BTS Seed Node: seed.bts.bangzi.info:55501
bangzi1001 Jul 9, 2018
97f17b5
Minor coding style change
abitmore Jul 14, 2018
4fcbe67
Merge pull request #1129 from bitshares/abitmore-patch-2
oxarbitrage Jul 14, 2018
691e1ff
Merge pull request #1132 from RichardWeiYang/develop
oxarbitrage Jul 14, 2018
dc38201
Merge pull request #1138 from bitshares/seed-node-bangzi
oxarbitrage Jul 14, 2018
70afcbb
Bump fc
pmconrad Jun 22, 2018
740fd54
Added unit test run + sonar scanner to travis build
pmconrad Jun 22, 2018
31a09ce
Replaced deprecated BOOST_MESSAGE with BOOST_TEST_MESSAGE.
christophersanborn Jul 17, 2018
466bd14
Balance evaluator code cleanup
abitmore Jul 18, 2018
0c6cdd4
Merge pull request #1117 from christophersanborn/480-rp-mantissa-and-…
oxarbitrage Jul 18, 2018
6ee0a83
Merge pull request #1150 from bitshares/balance-evaluator-cleanup
abitmore Jul 18, 2018
f38492c
Merge pull request #1081 from pmconrad/836_sonar_integration
oxarbitrage Jul 18, 2018
a0c8014
fixed issue #1135
nanomobile Jul 18, 2018
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
18 changes: 14 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,19 @@ sudo: true
install:
- echo "deb http://de.archive.ubuntu.com/ubuntu xenial main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
- sudo apt-get update
- sudo apt-get install --allow-unauthenticated g++ libboost-all-dev cmake libreadline-dev libssl-dev autoconf
- sudo apt-get install --allow-unauthenticated g++ libboost-all-dev cmake libreadline-dev libssl-dev autoconf parallel

addons:
sonarcloud:
organization: "flwyiq7go36p6lipr64tbesy5jayad3q"
token:
secure: "Ik4xQhs9imtsFIC1SMAPmdLId9lVadY/4PEgo5tM4M5cQRvyt4xeuMMV+CRIT6tGEEqF71ea74qVJTxT7qinWZ3kmHliFjbqDxk1FbjCpK6NGQDyTdfWMVJFIlk7WefvtGAwFBkf6pSTs553bKNNM0HbBYQGKe08waLwv7R+lOmVjTTKIRF/cCVw+C5QQZdXFnUMTg+mRuUqGk4WvNNPmcBfkX0ekHPrXwAD5ATVS1q0iloA0nzHq8CPNmPE+IyXdPw0EBp+fl3cL9MgrlwRbELxrnCKFy+ObdjhDj7z3FDIxDe+03gVlgd+6Fame+9EJCeeeNLF4G4qNR1sLEvHRqVz12/NYnRU9hQL0c/jJtiUquOJA5+HqrhhB9XUZjS1xbHV3aIU5PR0bdDP6MKatvIVwRhwxwhaDXh7VSimis8eL+LvXT7EO+rGjco0c17RuzZpFCsKmXCej4Q8iDBMdOIWwe2WuWi8zb6MFvnLyK2EcM53hAn2yMwU+nprbpHwzU5oJTFZLD+J78zCSGk7uu7vsF+EEnheMwfqafP9MpMEXGXaXZiq7QKy3KvxQTg+1ozPIu+fgxvY0xdyrjJHOSJlrvXN7osjD4IDTs6D5cLAZ04WGIKsulZDr7ZN5n3gmA9h4cfhJsIEia0uQzLmWnfF6RksxWElK1i1+xmse7E="

script:
- cmake -DCMAKE_BUILD_TYPE=Debug -DBoost_USE_STATIC_LIBS=OFF .
- make -j 2

- sed -i '/tests/d' libraries/fc/CMakeLists.txt
- cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=--coverage -DCMAKE_CXX_FLAGS=--coverage -DBoost_USE_STATIC_LIBS=OFF -DCMAKE_CXX_OUTPUT_EXTENSION_REPLACE=ON .
- 'which build-wrapper-linux-x86-64 && build-wrapper-linux-x86-64 --out-dir bw-output make -j 2 cli_wallet witness_node chain_test || make -j 2 cli_wallet witness_node chain_test'
- set -o pipefail
- tests/chain_test 2>&1 | cat
- 'find libraries/[acdenptuw]*/CMakeFiles/*.dir programs/[cdgjsw]*/CMakeFiles/*.dir -type d | while read d; do gcov -o "$d" "${d/CMakeFiles*.dir//}"/*.cpp; done >/dev/null'
- 'which sonar-scanner && sonar-scanner || true'
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,8 @@ ADD docker/default_config.ini /etc/bitshares/config.ini
ADD docker/bitsharesentry.sh /usr/local/bin/bitsharesentry.sh
RUN chmod a+x /usr/local/bin/bitsharesentry.sh

# Make Docker send SIGINT instead of SIGTERM to the daemon
STOPSIGNAL SIGINT

# default execute entry
CMD /usr/local/bin/bitsharesentry.sh
CMD ["/usr/local/bin/bitsharesentry.sh"]
4 changes: 2 additions & 2 deletions Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ PROJECT_NAME = "Bitshares-Core"
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = "2.0.180202"
PROJECT_NUMBER = "2.0.180612"

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
# quick idea about the purpose of the project. Keep the description short.

PROJECT_BRIEF = "Your share in the Decentralized Exchange"
PROJECT_BRIEF = "BitShares blockchain implementation and command-line interface software"

# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
# in the documentation. The maximum height of the logo should not exceed 55
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Getting Started
Build instructions and additional documentation are available in the
[wiki](https://github.com/bitshares/bitshares-core/wiki).

We recommend building on Ubuntu 16.04 LTS, and the build dependencies may be installed with:
We recommend building on Ubuntu 16.04 LTS (64-bit), and the build dependencies may be installed with:

sudo apt-get update
sudo apt-get install autoconf cmake git libboost-all-dev libssl-dev g++ libcurl4-openssl-dev
Expand All @@ -51,10 +51,12 @@ To build after all dependencies are installed:

**NOTE:** BitShares requires an [OpenSSL](https://www.openssl.org/) version in the 1.0.x series. OpenSSL 1.1.0 and newer are NOT supported. If your system OpenSSL version is newer, then you will need to manually provide an older version of OpenSSL and specify it to CMake using `-DOPENSSL_INCLUDE_DIR`, `-DOPENSSL_SSL_LIBRARY`, and `-DOPENSSL_CRYPTO_LIBRARY`.

**NOTE:** BitShares requires a [Boost](http://www.boost.org/) version in the range [1.57, 1.63]. Versions earlier than
1.57 or newer than 1.63 are NOT supported. If your system Boost version is newer, then you will need to manually build
**NOTE:** BitShares requires a [Boost](http://www.boost.org/) version in the range [1.57, 1.65]. Versions earlier than
1.57 or newer than 1.65 are NOT supported. If your system Boost version is newer, then you will need to manually build
an older version of Boost and specify it to CMake using `DBOOST_ROOT`.

**NOTE:** BitShares requires a 64-bit operating system to build, and will not build on a 32-bit OS.

After building, the witness node can be launched with:

./programs/witness_node/witness_node
Expand Down
4 changes: 2 additions & 2 deletions docker/bitsharesentry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ ln -f -s /etc/bitshares/config.ini /var/lib/bitshares
# Plugins need to be provided in a space-separated list, which
# makes it necessary to write it like this
if [[ ! -z "$BITSHARESD_PLUGINS" ]]; then
$BITSHARESD --data-dir ${HOME} ${ARGS} ${BITSHARESD_ARGS} --plugins "${BITSHARESD_PLUGINS}"
exec $BITSHARESD --data-dir ${HOME} ${ARGS} ${BITSHARESD_ARGS} --plugins "${BITSHARESD_PLUGINS}"
else
$BITSHARESD --data-dir ${HOME} ${ARGS} ${BITSHARESD_ARGS}
exec $BITSHARESD --data-dir ${HOME} ${ARGS} ${BITSHARESD_ARGS}
fi
2 changes: 1 addition & 1 deletion docker/default_config.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Endpoint for P2P node to listen on
p2p-endpoint = 0.0.0.0:9090
p2p-endpoint = 0.0.0.0:2001

# P2P nodes to connect to on startup (may specify multiple times)
# seed-node =
Expand Down
1 change: 0 additions & 1 deletion libraries/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
add_subdirectory( fc )
add_subdirectory( db )
add_subdirectory( deterministic_openssl_rand )
add_subdirectory( chain )
add_subdirectory( egenesis )
add_subdirectory( net )
Expand Down
1 change: 0 additions & 1 deletion libraries/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ add_library( graphene_app
application.cpp
util.cpp
database_api.cpp
impacted.cpp
plugin.cpp
${HEADERS}
${EGENESIS_HEADERS}
Expand Down
42 changes: 18 additions & 24 deletions libraries/app/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include <graphene/app/api.hpp>
#include <graphene/app/api_access.hpp>
#include <graphene/app/application.hpp>
#include <graphene/app/impacted.hpp>
#include <graphene/chain/database.hpp>
#include <graphene/chain/get_config.hpp>
#include <graphene/utilities/key_conversion.hpp>
Expand Down Expand Up @@ -309,7 +308,7 @@ namespace graphene { namespace app {
return result;
}

vector<operation_history_object> history_api::get_account_history( account_id_type account,
vector<operation_history_object> history_api::get_account_history( const std::string account_id_or_name,
operation_history_id_type stop,
unsigned limit,
operation_history_id_type start ) const
Expand All @@ -318,7 +317,9 @@ namespace graphene { namespace app {
const auto& db = *_app.chain_database();
FC_ASSERT( limit <= 100 );
vector<operation_history_object> result;
account_id_type account;
try {
account = database_api.get_account_id_from_string(account_id_or_name);
const account_transaction_history_object& node = account(db).statistics(db).most_recent_op(db);
if(start == operation_history_id_type() || start.instance.value > node.operation_id.instance.value)
start = node.operation_id;
Expand All @@ -342,7 +343,7 @@ namespace graphene { namespace app {
return result;
}

vector<operation_history_object> history_api::get_account_history_operations( account_id_type account,
vector<operation_history_object> history_api::get_account_history_operations( const std::string account_id_or_name,
int operation_id,
operation_history_id_type start,
operation_history_id_type stop,
Expand All @@ -352,6 +353,10 @@ namespace graphene { namespace app {
const auto& db = *_app.chain_database();
FC_ASSERT( limit <= 100 );
vector<operation_history_object> result;
account_id_type account;
try {
account = database_api.get_account_id_from_string(account_id_or_name);
} catch(...) { return result; }
const auto& stats = account(db).statistics(db);
if( stats.most_recent_op == account_transaction_history_id_type() ) return result;
const account_transaction_history_object* node = &stats.most_recent_op(db);
Expand All @@ -378,7 +383,7 @@ namespace graphene { namespace app {
}


vector<operation_history_object> history_api::get_relative_account_history( account_id_type account,
vector<operation_history_object> history_api::get_relative_account_history( const std::string account_id_or_name,
uint32_t stop,
unsigned limit,
uint32_t start) const
Expand All @@ -387,13 +392,16 @@ namespace graphene { namespace app {
const auto& db = *_app.chain_database();
FC_ASSERT(limit <= 100);
vector<operation_history_object> result;
account_id_type account;
try {
account = database_api.get_account_id_from_string(account_id_or_name);
} catch(...) { return result; }
const auto& stats = account(db).statistics(db);
if( start == 0 )
start = stats.total_ops;
else
start = min( stats.total_ops, start );


if( start >= stop && start > stats.removed_ops && limit > 0 )
{
const auto& hist_idx = db.get_index_type<account_transaction_history_index>();
Expand All @@ -419,12 +427,12 @@ namespace graphene { namespace app {
return hist->tracked_buckets();
}

history_operation_detail history_api::get_account_history_by_operations(account_id_type account, vector<uint16_t> operation_types, uint32_t start, unsigned limit)
history_operation_detail history_api::get_account_history_by_operations(const std::string account_id_or_name, vector<uint16_t> operation_types, uint32_t start, unsigned limit)
{
FC_ASSERT(limit <= 100);
history_operation_detail result;
vector<operation_history_object> objs = get_relative_account_history(account, start, limit, limit + start - 1);
std::for_each(objs.begin(), objs.end(), [&](const operation_history_object &o) {
FC_ASSERT(limit <= 100);
history_operation_detail result;
vector<operation_history_object> objs = get_relative_account_history(account_id_or_name, start, limit, limit + start - 1);
std::for_each(objs.begin(), objs.end(), [&](const operation_history_object &o) {
if (operation_types.empty() || find(operation_types.begin(), operation_types.end(), o.op.which()) != operation_types.end()) {
result.operation_history_objs.push_back(o);
}
Expand Down Expand Up @@ -462,20 +470,6 @@ namespace graphene { namespace app {

crypto_api::crypto_api(){};

blind_signature crypto_api::blind_sign( const extended_private_key_type& key, const blinded_hash& hash, int i )
{
return fc::ecc::extended_private_key( key ).blind_sign( hash, i );
}

signature_type crypto_api::unblind_signature( const extended_private_key_type& key,
const extended_public_key_type& bob,
const blind_signature& sig,
const fc::sha256& hash,
int i )
{
return fc::ecc::extended_private_key( key ).unblind_signature( extended_public_key( bob ), sig, hash, i );
}

commitment_type crypto_api::blind( const blind_factor_type& blind, uint64_t value )
{
return fc::ecc::blind( blind, value );
Expand Down
8 changes: 4 additions & 4 deletions libraries/app/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,10 @@ void application_impl::reset_p2p_node(const fc::path& data_dir)
"seed.cubeconnex.com:1777", // cube (USA)
"seed.roelandp.nl:1776", // roelandp (Canada)
"seed04.bts-nodes.net:1776", // Thom (Australia)
"seed05.bts-nodes.net:1776", // Thom (USA)
"seed06.bts-nodes.net:1776", // Thom (USA)
"seed07.bts-nodes.net:1776", // Thom (Singapore)
"seed05.bts-nodes.net:1776", // Thom (USA)
"seed06.bts-nodes.net:1776", // Thom (USA)
"seed07.bts-nodes.net:1776", // Thom (Singapore)
"seed.bts.bangzi.info:55501", // Bangzi (Germany)
"seeds.bitshares.eu:1776" // pc (http://seeds.quisquis.de/bitshares.html)
};
for( const string& endpoint_string : seeds )
Expand Down Expand Up @@ -436,7 +437,6 @@ void application_impl::startup()
wild_access.allowed_apis.push_back( "database_api" );
wild_access.allowed_apis.push_back( "network_broadcast_api" );
wild_access.allowed_apis.push_back( "history_api" );
wild_access.allowed_apis.push_back( "crypto_api" );
wild_access.allowed_apis.push_back( "orders_api" );
_apiaccess.permission_map["*"] = wild_access;
}
Expand Down
Loading