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

Update unicode.hpp #380

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions include/metaverse/bitcoin/constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ BC_CONSTEXPR uint8_t byte_bits = 8;

// Consensus constants.
extern uint32_t coinbase_maturity;
BC_CONSTEXPR uint32_t transaction_maturity = 3;
BC_CONSTEXPR uint32_t max_input_sequence = max_uint32;

BC_CONSTEXPR uint32_t total_reward = 100000000;
Expand Down
5 changes: 4 additions & 1 deletion include/metaverse/bitcoin/unicode/unicode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,15 @@
boost::filesystem::path::imbue(std::locale()); \
\
auto variables = bc::to_utf8(_wenviron); \
auto old_environ = environ; \
environ = reinterpret_cast<char**>(variables.data()); \
\
auto arguments = bc::to_utf8(argc, argv); \
auto args = reinterpret_cast<char**>(arguments.data()); \
\
return libbitcoin::main(argc, args); \
auto ret = libbitcoin::main(argc, args); \
environ = old_environ; \
return ret; \
}
#else
#define BC_USE_MVS_MAIN \
Expand Down