Skip to content

Commit 12a654a

Browse files
author
Michael Vandeberg
authored
Merge branch 'master' into sps
2 parents ca1b343 + 59fcc85 commit 12a654a

File tree

6 files changed

+83
-2105
lines changed

6 files changed

+83
-2105
lines changed

.gitignore

+72-22
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,85 @@
1+
# Binary and library file types
12
*.a
2-
*.sw*
3+
*.dylib
4+
*.so
5+
*.pyc
6+
*.pyo
7+
8+
# Xcode project files
9+
*.xcodeproj/
10+
*.build/
11+
Debug/
12+
Release/
313

14+
# Visual Studio Code files
415
.vscode
5-
*.cmake
16+
17+
# CMake files
18+
cmake_install.cmake
619
CMakeCache.txt
720
CMakeFiles
21+
CMakeDoxyfile.in
22+
CMakeDoxygenDefaults.cmake
23+
CMakeScripts/
24+
25+
# Unix Makefiles
826
Makefile
9-
compile_commands.json
10-
moc_*
11-
*.moc
12-
hardfork.hpp
1327

28+
# Misc files
29+
\#*\#
30+
*~
31+
compile_commands.json
1432
lcov
33+
doxygen
1534

16-
libraries/utilities/git_revision.cpp
35+
# Project generated files/directories
1736

37+
build_version.cc
38+
39+
libraries/appbase/examples/appbase_example
40+
libraries/chainbase/test/chainbase_test
41+
libraries/protocol/include/steem/protocol/hardfork.hpp
42+
libraries/fc/git_revision.cpp
43+
libraries/fc/tests/all_tests
44+
libraries/fc/tests/api
45+
libraries/fc/tests/bip_lock
46+
libraries/fc/tests/blind
47+
libraries/fc/tests/bloom_test
48+
libraries/fc/tests/ecc_test
49+
libraries/fc/tests/ecdsa_canon_test
50+
libraries/fc/tests/hmac_test
51+
libraries/fc/tests/log_test
52+
libraries/fc/tests/ntp_test
53+
libraries/fc/tests/real128_test
54+
libraries/fc/tests/saturation_test
55+
libraries/fc/tests/sha_test
56+
libraries/fc/tests/task_cancel_test
57+
libraries/fc/tests/thread_test
58+
libraries/fc/vendor/secp256k1-zkp/src/project_secp256k1-build/
59+
libraries/fc/vendor/secp256k1-zkp/src/project_secp256k1-stamp/
60+
libraries/fc/vendor/secp256k1-zkp/tmp/
61+
libraries/jsonball/gensrc/
62+
libraries/jsonball/template_context/
63+
libraries/manifest/gensrc/
64+
libraries/manifest/template_context/
65+
libraries/mira/test/mira_test
66+
libraries/utilities/git_revision.cpp
67+
libraries/vendor/rocksdb/RocksDBConfig.cmake
68+
libraries/vendor/rocksdb/RocksDBConfigVersion.cmake
1869
libraries/wallet/Doxyfile
1970
libraries/wallet/api_documentation.cpp
2071
libraries/wallet/doxygen
2172

73+
programs/build_helpers/steem_build_helpers/__pycache__/
74+
programs/util/dump_steem_schema
75+
programs/util/schema_test
76+
programs/util/serialize_set_properties
77+
programs/util/sign_digest
78+
programs/util/sign_transaction
79+
programs/util/test_block_log
80+
programs/util/test_fixed_string
81+
programs/util/test_shared_mem
82+
programs/util/test_sqrt
2283
programs/cli_wallet/cli_wallet
2384
programs/js_operation_serializer/js_operation_serializer
2485
programs/steemd/steemd
@@ -36,18 +97,7 @@ tests/plugin_test
3697
tests/intense_test
3798
tests/performance_test
3899

39-
doxygen
40-
41-
build
42-
build.debug
43-
build.release
44-
45-
wallet.json
46-
witness_node_data_dir
47-
48-
*.wallet
49-
50-
*.pyc
51-
*.pyo
52-
*.egg-info/
53-
*.log
100+
# Build directories
101+
build/
102+
build.*/
103+
build-*/

libraries/chain/include/steem/chain/account_object.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ namespace steem { namespace chain {
126126

127127
template< typename Constructor, typename Allocator >
128128
account_metadata_object( Constructor&& c, allocator< Allocator > a )
129-
: json_metadata( a )
129+
: json_metadata( a ), posting_json_metadata( a )
130130
{
131131
c( *this );
132132
}

libraries/chain/steem_evaluator.cpp

+9-1
Original file line numberDiff line numberDiff line change
@@ -1883,7 +1883,15 @@ void hf20_vote_evaluator( const vote_operation& o, database& _db )
18831883
util::manabar_params params( util::get_effective_vesting_shares( a ), STEEM_VOTING_MANA_REGENERATION_SECONDS );
18841884
a.voting_manabar.regenerate_mana( params, now );
18851885
});
1886-
FC_ASSERT( voter.voting_manabar.current_mana > 0, "Account does not have enough mana to vote." );
1886+
1887+
if ( _db.has_hardfork( STEEM_HARDFORK_0_21__3004 ) )
1888+
{
1889+
FC_ASSERT( voter.voting_manabar.current_mana >= 0, "Account does not have enough mana to vote." );
1890+
}
1891+
else
1892+
{
1893+
FC_ASSERT( voter.voting_manabar.current_mana > 0, "Account does not have enough mana to vote." );
1894+
}
18871895

18881896
int16_t abs_weight = abs( o.weight );
18891897
uint128_t used_mana = ( uint128_t( voter.voting_manabar.current_mana ) * abs_weight * 60 * 60 * 24 ) / STEEM_100_PERCENT;

libraries/protocol/hardfork.d/0_21.hf

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#define STEEM_HARDFORK_0_21_TIME 1549033025 // Friday, February 1, 2019 2:57:05 PM
66

77
#define STEEM_HARDFORK_0_21__2203 (STEEM_HARDFORK_0_21)
8+
#define STEEM_HARDFORK_0_21__3004 (STEEM_HARDFORK_0_21)
89
#define STEEM_HARDFORK_0_21__3274 (STEEM_HARDFORK_0_21)
910

1011
#define STEEM_HARDFORK_0_21_VERSION hardfork_version( 0, 21 )

libraries/vendor/rocksdb/.gitignore

-76
This file was deleted.

0 commit comments

Comments
 (0)