Bitcoin Forum
June 17, 2024, 06:12:21 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Coin Devs??? Can you help a fellow Dev Out??? Just a Question  (Read 1522 times)
viking_coin (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
August 25, 2014, 09:57:08 AM
Last edit: August 25, 2014, 10:26:30 AM by viking_coin
 #1

Im working on an upgrade, everything apprears to work fine. Except that Block finding client recieves 0 reward while test solo mining. Debug log shows the Block value and its accepted, but transactions and balance remain at 0.

Can someone point me in the right area to look or some ideas to why  the block shows reward but none is given.*

Viking Coin- SHA 256 -5,000 Vik
thevikingcoin.com
KriszDev
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250


View Profile
August 25, 2014, 08:54:15 PM
 #2

Block 0 contain no tx. From block 1 you need comfirmations to receive reward.
viking_coin (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
August 25, 2014, 09:07:35 PM
 #3

Im may have not worded this correctly.

I realize the Genesis block gives 0 reward, I also understand the Confirmations for coin to move from Unconfirmed to confirmed coin balace.

This issue is, the Block finder does not receive ANY reward at all. No unconfirmed coins and no "Mined" transaction in the TX list.

Blocks are being accepted, Diff is adjusting up.  Found blocks do have a Value but is not being awarded to finder.

Debug.log

2014-08-25 08:29:13 DevcoinMiner:
2014-08-25 08:29:13 proof-of-work found 
  hash: 0000000048ee719e56e730184e293bccfb369959195ce18982399515d7c4d8f9 
target: 0000019726000000000000000000000000000000000000000000000000000000
2014-08-25 08:29:13 CBlock(hash=0000000048ee719e56e730184e293bccfb369959195ce18982399515d7c4d8f9, ver=327681, hashPrevBlock=0000000017fa717a610764dc771e4a6bc6f4f07de545d232a0a910e95d491b95, hashMerkleRoot=dab5d829d5f1b8ee5de7c7da8000089312381038c8194f0b9c1787b7ccce9929, nTime=1408955344, nBits=1e019726, nNonce=1386869691, vtx=1)
2014-08-25 08:29:13   CTransaction(hash=dab5d829d5, ver=1, vin.size=1, vout.size=1, nLockTime=0)
    CTxIn(COutPoint(0000000000, 4294967295), coinbase 01350101062f503253482f)
    CTxOut(nValue=1.00000000, scriptPubKey=)
2014-08-25 08:29:13   vMerkleTree: dab5d829d5f1b8ee5de7c7da8000089312381038c8194f0b9c1787b7ccce9929
2014-08-25 08:29:13 generated 1.00

Viking Coin- SHA 256 -5,000 Vik
thevikingcoin.com
KriszDev
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250


View Profile
August 26, 2014, 05:33:50 AM
 #4

This tx have to recpient. Are you use "setgenerate true" or other mining software? What have you changed in the source code?
viking_coin (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
August 26, 2014, 08:37:41 AM
 #5

Solo mining- 3- 333mhs Usb Block Eruptors.

Setgenerate= true, same result.

Upgrade to 0.9.2 + Merge Mine patch.

Auxpow, isn't active at this time. Still on original testnet chain.



The source is at
 https://github.com/i3lome/vikingcoin
Branch 0.9.2

The Master is the Original Client that is still being mined. Well, Except the Update today to Disable KGW

Viking Coin- SHA 256 -5,000 Vik
thevikingcoin.com
KriszDev
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250


View Profile
August 26, 2014, 10:12:39 AM
 #6

Have you tried other SHA coin testnet?
viking_coin (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
August 27, 2014, 02:11:14 AM
 #7

No I have not tried another coins testnet? What would I learn from that?

Viking Coin- SHA 256 -5,000 Vik
thevikingcoin.com
KriszDev
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250


View Profile
August 27, 2014, 06:08:07 AM
 #8

If it work with other coins testnet then the problem is with the vikingcoin.
viking_coin (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
August 27, 2014, 07:09:20 AM
 #9

Yes, the problem is with the Viking Coin upgrade that Im working on. Im the dev of Viking Coin, this whole post is asking for assistance on finding the root of the problem. Im a dev asking for fellow dev assistance Undecided

Viking Coin- SHA 256 -5,000 Vik
thevikingcoin.com
HeadsOrTails
Full Member
***
Offline Offline

Activity: 233
Merit: 100



View Profile
August 27, 2014, 09:45:13 AM
 #10

Yes, the problem is with the Viking Coin upgrade that Im working on. Im the dev of Viking Coin, this whole post is asking for assistance on finding the root of the problem. Im a dev asking for fellow dev assistance Undecided


Please. Enough. If you can't do this how are you going to develop a coin worthwhile to the current environment. Just quit now or learn to develop.
Satoshi's vision is being raped just so people like you can make clone shitcoins to hock for ICO or whatever BTC profit you can get.
And you're not a fellow developer.
ahmed_bodi
Hero Member
*****
Offline Offline

Activity: 518
Merit: 500

Bitrated user: ahmedbodi.


View Profile
August 27, 2014, 04:01:02 PM
 #11

You really need to think before you speak. i3lome isnt a standard shitcoin dev. They are WORKING on the code. Not copy and pasting as random shitcoin devs do. Theres a big difference there

Bitrated user: ahmedbodi.
viking_coin (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
August 27, 2014, 11:29:39 PM
 #12

Yes, the problem is with the Viking Coin upgrade that Im working on. Im the dev of Viking Coin, this whole post is asking for assistance on finding the root of the problem. Im a dev asking for fellow dev assistance Undecided


Please. Enough. If you can't do this how are you going to develop a coin worthwhile to the current environment. Just quit now or learn to develop.
Satoshi's vision is being raped just so people like you can make clone shitcoins to hock for ICO or whatever BTC profit you can get.
And you're not a fellow developer.

Wow, so much vague hostility. ICO? no clue what that is but IPO defiantly not. Quit now and learn to develop?  Isnt Developing evolving a code to meet the need of its purpose?  In the developing process, new things are learned and applied so it will develop over a period of time. right?

Im not you average dev, Im not afraid to ask for assistance on an issue someone else may have experienced. If no assistance is around it just takes a little longer to work things out.  I have no secrets, I hold no premine and hype is not part of Viking Coin. 3 months old now, we have outlive several coins.

Ahmed_bodi, I thank you for the kind words and your efforts with Viking Coin. Viking wont be able to overlooked too much longer. The slow forward pace just allows us to pick up momentum.   

Viking Coin- SHA 256 -5,000 Vik
thevikingcoin.com
esotericizm
Hero Member
*****
Offline Offline

Activity: 750
Merit: 500



View Profile
August 27, 2014, 11:33:23 PM
 #13

Sounds like some of the code in the forms or overviewpage is broken. If I'm understanding correctly that you are finding blocks but they just aren't showing up in the QT? What does 'getinfo' return?
viking_coin (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
August 27, 2014, 11:55:40 PM
 #14

Sounds like some of the code in the forms or overviewpage is broken. If I'm understanding correctly that you are finding blocks but they just aren't showing up in the QT? What does 'getinfo' return?
You are correct. Blocks are found with a Value but is not credited to the wallet.


I don't have a Copy of "getinfo" saved but,

Balance stays at 0, while block count and difficulty adjusts as it should.


I will look threw the forms to see if I can find the problem. Im sure it something small or out of place.  I appreciate your input

Viking Coin- SHA 256 -5,000 Vik
thevikingcoin.com
coinsolidation
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250

Bitmark Developer


View Profile WWW
August 28, 2014, 12:20:33 AM
 #15

You need to decide if you're on version 2 blocks or version 2 transactions.

Code:
bool IsStandardTx(const CTransaction& tx, string& reason)
{
    AssertLockHeld(cs_main);
    if (tx.nVersion > CTransaction::CURRENT_VERSION || tx.nVersion < 2) {
        reason = "version";
        return false;
    }

CTransaction::CURRENT_VERSION = 1; so the above is always false.

tip, you're on version 1 transactions so change all code that looks for tx.nVersion equaling 2 back to 1.

Bitmark (reputation+money) : Bitmark v0.9.4 (release)
viking_coin (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
August 28, 2014, 01:54:08 AM
 #16

You need to decide if you're on version 2 blocks or version 2 transactions.

Code:
bool IsStandardTx(const CTransaction& tx, string& reason)
{
    AssertLockHeld(cs_main);
    if (tx.nVersion > CTransaction::CURRENT_VERSION || tx.nVersion < 2) {
        reason = "version";
        return false;
    }

CTransaction::CURRENT_VERSION = 1; so the above is always false.

tip, you're on version 1 transactions so change all code that looks for tx.nVersion equaling 2 back to 1.

That's the type of information I was looking for. Thank you

Im not great with explaining things but you turned on my light bulb. The original chain produces V1 blocks, while the upgrade and Merge Mining produces V2 blocks. I started testnet on the New Client which produces V2 blocks from the get go.

Seems what I need to do its, take the Testnet from Client 1 that's been established to a point then, implement MM chain allowing v2 to be accepted from that point forward.



Viking Coin- SHA 256 -5,000 Vik
thevikingcoin.com
coinsolidation
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250

Bitmark Developer


View Profile WWW
August 28, 2014, 01:58:24 AM
 #17

You need to decide if you're on version 2 blocks or version 2 transactions.

Code:
bool IsStandardTx(const CTransaction& tx, string& reason)
{
    AssertLockHeld(cs_main);
    if (tx.nVersion > CTransaction::CURRENT_VERSION || tx.nVersion < 2) {
        reason = "version";
        return false;
    }

CTransaction::CURRENT_VERSION = 1; so the above is always false.

tip, you're on version 1 transactions so change all code that looks for tx.nVersion equaling 2 back to 1.

That's the type of information I was looking for. Thank you

Im not great with explaining things but you turned on my light bulb. The original chain produces V1 blocks, while the upgrade and Merge Mining produces V2 blocks. I started testnet on the New Client which produces V2 blocks from the get go.

Seems what I need to do its, take the Testnet from Client 1 that's been established to a point then, implement MM chain allowing v2 to be accepted from that point forward.


The blocks are fine, it's the transactions that are being rejected. You have V2 blocks and V1 transactions - well you should, you currently have both but have code like the above that rejects V1 transactions, fix that and it'll work. Especially the above line.

Bitmark (reputation+money) : Bitmark v0.9.4 (release)
viking_coin (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
August 28, 2014, 02:15:27 AM
 #18

You need to decide if you're on version 2 blocks or version 2 transactions.

Code:
bool IsStandardTx(const CTransaction& tx, string& reason)
{
    AssertLockHeld(cs_main);
    if (tx.nVersion > CTransaction::CURRENT_VERSION || tx.nVersion < 2) {
        reason = "version";
        return false;
    }

CTransaction::CURRENT_VERSION = 1; so the above is always false.

tip, you're on version 1 transactions so change all code that looks for tx.nVersion equaling 2 back to 1.

That's the type of information I was looking for. Thank you

Im not great with explaining things but you turned on my light bulb. The original chain produces V1 blocks, while the upgrade and Merge Mining produces V2 blocks. I started testnet on the New Client which produces V2 blocks from the get go.

Seems what I need to do its, take the Testnet from Client 1 that's been established to a point then, implement MM chain allowing v2 to be accepted from that point forward.


The blocks are fine, it's the transactions that are being rejected. You have V2 blocks and V1 transactions - well you should, you currently have both but have code like the above that rejects V1 transactions, fix that and it'll work. Especially the above line.

Im on my way home now, I give it a go when I get in. Figured it would be something simple just not that obvious. lol. 

Viking Coin- SHA 256 -5,000 Vik
thevikingcoin.com
elbandi
Hero Member
*****
Offline Offline

Activity: 525
Merit: 529


View Profile
August 28, 2014, 12:07:57 PM
 #19

2014-08-25 08:29:13 DevcoinMiner:
2014-08-25 08:29:13 proof-of-work found 
  hash: 0000000048ee719e56e730184e293bccfb369959195ce18982399515d7c4d8f9 
target: 0000019726000000000000000000000000000000000000000000000000000000
2014-08-25 08:29:13 CBlock(hash=0000000048ee719e56e730184e293bccfb369959195ce18982399515d7c4d8f9, ver=327681, hashPrevBlock=0000000017fa717a610764dc771e4a6bc6f4f07de545d232a0a910e95d491b95, hashMerkleRoot=dab5d829d5f1b8ee5de7c7da8000089312381038c8194f0b9c1787b7ccce9929, nTime=1408955344, nBits=1e019726, nNonce=1386869691, vtx=1)
2014-08-25 08:29:13   CTransaction(hash=dab5d829d5, ver=1, vin.size=1, vout.size=1, nLockTime=0)
    CTxIn(COutPoint(0000000000, 4294967295), coinbase 01350101062f503253482f)
    CTxOut(nValue=1.00000000, scriptPubKey=)
2014-08-25 08:29:13   vMerkleTree: dab5d829d5f1b8ee5de7c7da8000089312381038c8194f0b9c1787b7ccce9929
2014-08-25 08:29:13 generated 1.00
I think, you send the block reward to an invalid address (scriptPubKey is empty). Examine the transaction in debug console:
Code:
gettransaction dab5d829d5f1b8ee5de7c7da8000089312381038c8194f0b9c1787b7ccce9929 

you sould see at the end something like this:
Quote
....
    "vout" : [
        {
            "value" : 50000.00000000,
            "n" : 0,
            "scriptPubKey" : {
                "asm" : "OP_DUP OP_HASH160 f048507208cdddb41b5c89e035542d594aa10202 OP_EQUALVERIFY OP_CHECKSIG",
                "hex" : "76a914f048507208cdddb41b5c89e035542d594aa1020288ac",
                "reqSigs" : 1,
                "type" : "pubkeyhash",
                "addresses" : [
                    "BqhBQLxQSh6CnmP7pzZu9q7Mr1veRxE4r8"
                ]
            }
        }
...
viking_coin (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
August 28, 2014, 09:18:49 PM
 #20

2014-08-25 08:29:13 DevcoinMiner:
2014-08-25 08:29:13 proof-of-work found 
  hash: 0000000048ee719e56e730184e293bccfb369959195ce18982399515d7c4d8f9 
target: 0000019726000000000000000000000000000000000000000000000000000000
2014-08-25 08:29:13 CBlock(hash=0000000048ee719e56e730184e293bccfb369959195ce18982399515d7c4d8f9, ver=327681, hashPrevBlock=0000000017fa717a610764dc771e4a6bc6f4f07de545d232a0a910e95d491b95, hashMerkleRoot=dab5d829d5f1b8ee5de7c7da8000089312381038c8194f0b9c1787b7ccce9929, nTime=1408955344, nBits=1e019726, nNonce=1386869691, vtx=1)
2014-08-25 08:29:13   CTransaction(hash=dab5d829d5, ver=1, vin.size=1, vout.size=1, nLockTime=0)
    CTxIn(COutPoint(0000000000, 4294967295), coinbase 01350101062f503253482f)
    CTxOut(nValue=1.00000000, scriptPubKey=)
2014-08-25 08:29:13   vMerkleTree: dab5d829d5f1b8ee5de7c7da8000089312381038c8194f0b9c1787b7ccce9929
2014-08-25 08:29:13 generated 1.00
I think, you send the block reward to an invalid address (scriptPubKey is empty). Examine the transaction in debug console:
Code:
gettransaction dab5d829d5f1b8ee5de7c7da8000089312381038c8194f0b9c1787b7ccce9929 

you sould see at the end something like this:
Quote
....
    "vout" : [
        {
            "value" : 50000.00000000,
            "n" : 0,
            "scriptPubKey" : {
                "asm" : "OP_DUP OP_HASH160 f048507208cdddb41b5c89e035542d594aa10202 OP_EQUALVERIFY OP_CHECKSIG",
                "hex" : "76a914f048507208cdddb41b5c89e035542d594aa1020288ac",
                "reqSigs" : 1,
                "type" : "pubkeyhash",
                "addresses" : [
                    "BqhBQLxQSh6CnmP7pzZu9q7Mr1veRxE4r8"
                ]
            }
        }
...

I think you may be onto something. I tried the Version adjustment last night. I will spend today trying to work this out.

This is what gettransaction gives me.

i3lome@i3lome-A740GM-M:~/vikingcoin/src$ ./vikingcoind -testnet gettransaction 81572fda124605376e67bed3df05726133246e03ee619f718f15a5d64df23fbf
error: {"code":-5,"message":"Invalid or non-wallet transaction id"}

Viking Coin- SHA 256 -5,000 Vik
thevikingcoin.com
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!