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

[DO NOT MERGE] Merge with Monero 2-306 #276

Open
wants to merge 22 commits into
base: master
Choose a base branch
from

Conversation

LenyKholodov
Copy link
Contributor

No description provided.

boost::filesystem::path dir = tools::get_default_data_dir();
// remove .bitmonero, replace with .shared-ringdb
dir = dir.remove_filename();
dir /= ".shared-ringdb";
Copy link
Contributor

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
Copy link
Contributor

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


uint8_t get_bulletproof_fork()
{
return 8;
Copy link
Contributor

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

//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();
Copy link
Contributor

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?

bool use_dyn_fee = use_fork_rules(HF_VERSION_DYNAMIC_FEE, -720 * 1);
if (!use_dyn_fee)
return FEE_PER_KB;
*/
Copy link
Contributor

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?

//------------------------------------------------------------------------------------------------------------------------------
uint64_t wallet2::get_min_ring_size() const
{
if (use_fork_rules(8, 10))
Copy link
Contributor

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.

//------------------------------------------------------------------------------------------------------------------------------
uint64_t wallet2::get_max_ring_size() const
{
if (use_fork_rules(8, 10))
Copy link
Contributor

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.

// // 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;
Copy link
Contributor

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
Copy link
Contributor

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@"
Copy link
Contributor

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.

@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO.

#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
Copy link
Contributor

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.

Copy link
Contributor

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)

@jagerman
Copy link
Contributor

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 git blame becomes totally useless before it has fundamentally broken the commit history.

It needs to be properly rebased against master, not having master merged into it in history-destroying commits.

@LenyKholodov LenyKholodov changed the title Merge with Monero 2-306 [DO NOT MERGE] Merge with Monero 2-306 Apr 11, 2019
@LenyKholodov
Copy link
Contributor Author

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 git blame becomes totally useless before it has fundamentally broken the commit history.

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.

@LenyKholodov LenyKholodov force-pushed the feature/merge-monero-2-306-master-pass1 branch from 6171c0e to db06f87 Compare April 25, 2019 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants