-
Notifications
You must be signed in to change notification settings - Fork 41
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
[DO NOT MERGE] Merge with Monero 2-306 #276
base: master
Are you sure you want to change the base?
Conversation
src/wallet/wallet2.cpp
Outdated
boost::filesystem::path dir = tools::get_default_data_dir(); | ||
// remove .bitmonero, replace with .shared-ringdb | ||
dir = dir.remove_filename(); | ||
dir /= ".shared-ringdb"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, check, look like for us it should be .graft
{ | ||
// ceiling to the nearest integer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can leave this comment from monero after our line 233
src/wallet/wallet2.cpp
Outdated
|
||
uint8_t get_bulletproof_fork() | ||
{ | ||
return 8; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be another for graft and maybe better is use the constant from config file
src/wallet/wallet2.cpp
Outdated
//r = ::serialization::dump_binary(keys_file_data, buf); | ||
//r = r && epee::file_io_utils::save_string_to_file(keys_file_name, buf); //and never touch wallet_keys_file again, only read | ||
//CHECK_AND_ASSERT_MES(r, false, "failed to generate wallet keys file " << keys_file_name); | ||
//lock_keys_file(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we need this commented code?
src/wallet/wallet2.cpp
Outdated
bool use_dyn_fee = use_fork_rules(HF_VERSION_DYNAMIC_FEE, -720 * 1); | ||
if (!use_dyn_fee) | ||
return FEE_PER_KB; | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this is monero code?
src/wallet/wallet2.cpp
Outdated
//------------------------------------------------------------------------------------------------------------------------------ | ||
uint64_t wallet2::get_min_ring_size() const | ||
{ | ||
if (use_fork_rules(8, 10)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to check it. Look like HF is wrong.
src/wallet/wallet2.cpp
Outdated
//------------------------------------------------------------------------------------------------------------------------------ | ||
uint64_t wallet2::get_max_ring_size() const | ||
{ | ||
if (use_fork_rules(8, 10)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to check it. Look like HF is wrong.
src/wallet/wallet2.cpp
Outdated
// // time of v2 fork | ||
// const time_t fork_time = m_nettype == TESTNET ? 1448285909 : m_nettype == STAGENET ? 1520937818 : 1458748658; | ||
// // v2 fork block | ||
// const uint64_t fork_block = m_nettype == TESTNET ? 624634 : m_nettype == STAGENET ? 32000 : 1009827; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some strange code. Please, check it
@@ -1,21 +1,63 @@ | |||
# Graft Network | |||
|
|||
<<<<<<< HEAD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The readme has multiple overlapping layers of merge conflict markers committed.
@@ -1,4 +1,4 @@ | |||
#define GRAFT_VERSION_TAG "@VERSIONTAG@" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should not exist anymore and isn't being used.
src/cryptonote_config.h
Outdated
@@ -151,13 +165,16 @@ namespace config | |||
|
|||
uint64_t const CRYPTONOTE_PUBLIC_ADDRESS_BASE58_PREFIX = 90; // 'G' | |||
uint64_t const CRYPTONOTE_PUBLIC_INTEGRATED_ADDRESS_BASE58_PREFIX = 91; | |||
// TODO: subaddress prefix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO.
src/version.cpp.in
Outdated
#define DEF_GRAFT_VERSION_TAG "@VERSIONTAG@" | ||
#define DEF_GRAFT_VERSION "1.1.0-master" | ||
#define DEF_GRAFT_RELEASE_NAME "Vega" | ||
#define DEF_GRAFT_VERSION_FULL DEF_GRAFT_VERSION "-" DEF_GRAFT_VERSION_TAG |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seems to be no point in having these as definitions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Also they are very wrong values)
This PR is effectively destroying most of the GraftNetwork history by adding a commit that undoes several months of GraftNetwork changes (including deleting whole files) in a single commit then reimports those changes in another commit, bring those files and changes back to life. As a result It needs to be properly rebased against master, not having master merged into it in history-destroying commits. |
This PR won't be merged. This is temporary branch to fix all issues after merge. Actual PR with merge will be done later with changes after this first pass of merging. |
…rge-monero-2-306-master-pass1
…graft-project/GraftNetwork into feature/merge-monero-2-306-master-pass1
This reverts commit 2542518.
…hub.com/graft-project/GraftNetwork into feature/merge-monero-2-306-master-pass1
6171c0e
to
db06f87
Compare
No description provided.