Author

Topic: [ANN] Terracoin (TRC) - Est 2012 - page 120. (Read 408849 times)

legendary
Activity: 3556
Merit: 1126
September 23, 2016, 07:34:14 AM
You need to restart and use maxtipage longer than 2days, e. g.
terracoind -maxtipage=1382400

Right, I just did that and now it works.

Cheers!
sr. member
Activity: 425
Merit: 262
September 23, 2016, 07:12:54 AM
You need to restart and use maxtipage longer than 2days, e. g.
terracoind -maxtipage=1382400
legendary
Activity: 3556
Merit: 1126
September 23, 2016, 06:56:53 AM
hmm..

Quote
getauxblock
error code: -10
error message:
Namecoin is downloading blocks...

Quote
getinfo
{
  "version": 91201,
  "protocolversion": 70002,
  "walletversion": 60000,
  "blocks": 832999,

yeah, is all I get too:

$ terracoin-cli getauxblock
error code: -10
error message:
Namecoin is downloading blocks...
sr. member
Activity: 373
Merit: 250
September 23, 2016, 06:43:42 AM
hmm..

Quote
getauxblock
error code: -10
error message:
Namecoin is downloading blocks...

Quote
getinfo
{
  "version": 91201,
  "protocolversion": 70002,
  "walletversion": 60000,
  "blocks": 832999,
hero member
Activity: 800
Merit: 1000
September 23, 2016, 05:12:59 AM
OK, Fix pushed to my repo.

Clockuniverse. Plz re-compile
sr. member
Activity: 425
Merit: 262
September 23, 2016, 05:00:15 AM
afraid that wont work. Since terracoin launch. Some mining pool has been creating blocks with an invalid block version. That is why i had to set the islegacy version to the highest value they made. Apparently this is now conflicting with merged mining.

EDIT: unless its working for you?

I tested, it works.


Quote
[ec2-user@ip-172-31-59-190 ~]$ terracoin-cli getinfo
{
  "version": 91201,
  "protocolversion": 70002,
  "walletversion": 60000,
  "balance": 0.00000000,
  "blocks": 832999,
  "timeoffset": 0,
  "connections": 7,
  "proxy": "",
  "difficulty": 1527279.818642486,
  "testnet": false,
  "keypoololdest": 1474615308,
  "keypoolsize": 101,
  "paytxfee": 0.00000000,
  "relayfee": 0.00001000,
  "errors": "WARNING: check your network connection, 0 blocks received in the last 4 hours (120 expected)"
}
[ec2-user@ip-172-31-59-190 ~]$ terracoin-cli getauxblock
{
  "hash": "f7144258147bedf6e387ae731cd319ef79106f0f724a2c18df8abd523a142f31",
  "chainid": 50,
  "previousblockhash": "00000000000008b116313c83dc3138b4fe488af03531d754469033e2c5de7e0d",
  "coinbasevalue": 2000000000,
  "bits": "1a0afc20",
  "height": 833000,
  "_target": "000000000000000000000000000000000000000000000020fc0a000000000000"
}
[ec2-user@ip-172-31-59-190 ~]$
hero member
Activity: 800
Merit: 1000
September 23, 2016, 04:56:11 AM
afraid that wont work. Since terracoin launch. Some mining pool has been creating blocks with an invalid block version. That is why i had to set the islegacy version to the highest value they made. Apparently this is now conflicting with merged mining.

EDIT: unless its working for you?

EDIT 2:
103c103
<         consensus.nLegacyBlocksBefore = 806000;
---
>         consensus.nLegacyBlocksBefore = -1;

Everyone could try running this patch against their coind's and see if it accepts the block. If so i will apply it to the github and we can move the hard fork forward
sr. member
Activity: 425
Merit: 262
September 23, 2016, 04:25:54 AM
Hi Peers,

I think you can modify the source code a little and then it will work.

Code:
 src/primitives/pureheader.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/primitives/pureheader.h b/src/primitives/pureheader.h
index d366d3f..60db6c4 100644
--- a/src/primitives/pureheader.h
+++ b/src/primitives/pureheader.h
@@ -148,7 +148,7 @@ public:
      */
     inline bool IsLegacy() const
     {
- return nVersion <= 536870912;
+ return GetBaseVersion() <=  3;
     }
 };

Since it's 1 days more that no new blocks, we need to set maxtipage. e.g.:
terracoind -maxtipage=1382400
sr. member
Activity: 425
Merit: 262
September 23, 2016, 02:07:08 AM
It seems our hero developer is busy on some green coin wallet. Cheesy
sr. member
Activity: 425
Merit: 262
September 22, 2016, 09:11:46 PM
Can ahmedbodi explain why this code is written like this?

https://github.com/clockuniverse/terracoin/blob/master/src/primitives/pureheader.h
Code:
    inline bool IsLegacy() const
    {
return nVersion <= 536870912;
}
536870912 is 229, this is very strange, it seems no where to set big value like this.


While the dogecoin is written like this.
https://github.com/dogecoin/dogecoin/blob/master/src/primitives/pureheader.h
Code:
    inline bool IsLegacy() const
    {
        return nVersion == 1
            || (nVersion == 2 && GetChainId() == 0);
    }
legendary
Activity: 3556
Merit: 1126
September 22, 2016, 04:58:41 PM
terracoin-cli getauxblock
error code: -1
error message:
CreateNewBlock: TestBlockValidity failed: late-legacy-block (code 16)
legendary
Activity: 1231
Merit: 1001
September 22, 2016, 01:54:01 PM
Don't stress if you have lost 3 .9.12.1 peers.  By coincidence I have to move my server & its virtual machines to a different building this week. I was waiting until after the hard fork, but since we are waiting for a fix I figured I would do it today.  It should be back up Saturday.

Edited: For clarity
legendary
Activity: 1231
Merit: 1001
September 22, 2016, 07:44:05 AM
I went to bed and all hell broke loose!!

I emailed Ahmed yesterday afternoon to warn him the hard fork was coming, and I just now opened an issue.

https://github.com/clockuniverse/terracoin/issues/6

I will also email him again.  Don't worry we will get it fixed!!
hero member
Activity: 1438
Merit: 574
Always ask questions. #StandWithHongKong
September 22, 2016, 05:15:38 AM
Mork TRC calling Ahmed - come in Ahmed...... Smiley
sr. member
Activity: 425
Merit: 262
September 22, 2016, 05:03:19 AM
Does it mean that after merged mining started, the p2pool server for terracoin is not needed.
Only you run the p2pool server for bitcoin, and add --merged http://user:pass@terracoin_rpc_host:terracoin_rpc_port
Then it will start merge mining the terracoin.
You can check this guide: https://bitcointalksearch.org/topic/a-complete-guide-to-p2pool-merged-mining-btcnmcdvcixci0c-plus-ltc-linux-62842
we are not stupid man.. if you think "it will start merge mining" , then please try it yourself. it will not! i gave you my log..

It seems that we need ahmedbodi/TRC dev team to fix it, it seems that CreateNewBlock method rejects its own created block.
sr. member
Activity: 373
Merit: 250
September 22, 2016, 04:39:00 AM
Does it mean that after merged mining started, the p2pool server for terracoin is not needed.
Only you run the p2pool server for bitcoin, and add --merged http://user:pass@terracoin_rpc_host:terracoin_rpc_port
Then it will start merge mining the terracoin.
You can check this guide: https://bitcointalksearch.org/topic/a-complete-guide-to-p2pool-merged-mining-btcnmcdvcixci0c-plus-ltc-linux-62842
we are not stupid man.. if you think "it will start merge mining" , then please try it yourself. it will not! i gave you my log..
sr. member
Activity: 445
Merit: 250
September 22, 2016, 03:30:41 AM
my wallet doesnt accept new block... and even with merged mining:

p2pool.util.jsonrpc.NarrowError: -1 CreateNewBlock: TestBlockValidity failed: late-legacy-block (code 16)
newbie
Activity: 1
Merit: 100
September 22, 2016, 01:31:44 AM
Fsk, I'd have eaten that cheap wall :/
sr. member
Activity: 425
Merit: 262
September 22, 2016, 03:15:06 AM
Does it mean that after merged mining started, the p2pool server for terracoin is not needed.
Only you run the p2pool server for bitcoin, and add --merged http://user:pass@terracoin_rpc_host:terracoin_rpc_port
Then it will start merge mining the terracoin.
You can check this guide: https://bitcointalksearch.org/topic/a-complete-guide-to-p2pool-merged-mining-btcnmcdvcixci0c-plus-ltc-linux-62842
sr. member
Activity: 425
Merit: 262
September 22, 2016, 03:10:29 AM
If you use p2pool, should add command param --merged. Otherwise, it will still use getblocktemplate.
i do use "--merged". it calls getauxblock and has still problems! other merged coins work fine! only TRC has problems.

p2pool (version 16.0-4-gde1be30-dirty)


Can you post your error log?
Jump to: