Pages:
Author

Topic: Vertigo - Lightweight Vertcoin Wallet (Read 6118 times)

sr. member
Activity: 350
Merit: 250
Independent Cryptoveloper
December 13, 2014, 12:01:39 PM
#82
I think I found another problem.  This is the code for calculating the POW Hash.  It uses the height of the block to determine which hash to use.  This will require other code changes, because the Java class Block, doesn't have a height field, it will have to be supplied elsewhere, hopefully such that we don't end up with the wrong hash being calculated.

Code:
uint256 GetPoWHash(int height) const
    {
        uint256 thash;
        // Hardfork to Lyra2RE occurs on about the 15th December 2014
        // testnet fork set to 100
        printf("Choosing PoW Algo at height: %i... ", height);
        if((fTestNet && height >= 100) || height >= 208301)
        {
            printf("Chose Lyra2RE\n");
            lyra2re_hash(BEGIN(nVersion), BEGIN(thash));
        }
        else
        {
    printf("Chose Scrypt-N\n");
            scrypt_N_1_1_256(BEGIN(nVersion), BEGIN(thash), GetNfactor(nTime));
        }
        return thash;
    }
nov
sr. member
Activity: 433
Merit: 251
Independent crypto developer
December 13, 2014, 04:54:55 AM
#81
Yes, it is some solution.

Although it is not ideal solution.

Translating lyra2re algorithm step by step would be much better.

To test, if it works properly and the same way is, that for the same input value it should provide the same output value as for QT client lyra2re code.

We can e.g. prepare big text file with values to hash and generate output file with hashes and compare results to make sure that the lyra2re algorithm is the same as in QT client lyra2re code.


So far I haven't seen the lyra2re algorithm in Java.  It could be translated, but that leaves much room for lots of bugs.

Ideally, we would have Java code and Native and each platform can choose which code is run based on if the correct native code is available.


sr. member
Activity: 350
Merit: 250
Independent Cryptoveloper
December 13, 2014, 03:48:39 AM
#80
So far I haven't seen the lyra2re algorithm in Java.  It could be translated, but that leaves much room for lots of bugs.

Ideally, we would have Java code and Native and each platform can choose which code is run based on if the correct native code is available.

nov
sr. member
Activity: 433
Merit: 251
Independent crypto developer
December 12, 2014, 04:27:52 AM
#79
Yes, thanks! That would be huge help.

Can we implement lyra2re algorithm simply step by step in Java to avoid native code?

(Native code would complicate things by supporting at least 4 platforms with native code Windows, Linux, Mac OS X, Android).

Sent you PM.

Regards

Trying to contact Vertcoin developers about fork details.

Would like to update Vertigo to the Vertcoin fork.

If you are in contact with them, please let them know.

is this client going to be updated soon because of fork?

Let me know if you need help with the fork.  I have lots of experience with integrating hashing algorithms in both Java and Native for these apps. 

Unfortunately, it appears that the new hashing algorithm lyra2re does not have a java implementation, which is not ideal for a Java based app.  We can do it natively, but that is dependent on specific devices that the app would have to support individually (through use of the NDK).
sr. member
Activity: 350
Merit: 250
Independent Cryptoveloper
December 12, 2014, 02:07:41 AM
#78
Trying to contact Vertcoin developers about fork details.

Would like to update Vertigo to the Vertcoin fork.

If you are in contact with them, please let them know.

is this client going to be updated soon because of fork?

Let me know if you need help with the fork.  I have lots of experience with integrating hashing algorithms in both Java and Native for these apps. 

Unfortunately, it appears that the new hashing algorithm lyra2re does not have a java implementation, which is not ideal for a Java based app.  We can do it natively, but that is dependent on specific devices that the app would have to support individually (through use of the NDK).
nov
sr. member
Activity: 433
Merit: 251
Independent crypto developer
December 10, 2014, 12:12:18 PM
#77
Trying to contact Vertcoin developers about fork details.

Would like to update Vertigo to the Vertcoin fork.

If you are in contact with them, please let them know.

is this client going to be updated soon because of fork?
legendary
Activity: 888
Merit: 1000
Monero - secure, private and untraceable currency.
December 09, 2014, 04:38:57 AM
#76
is this client going to be updated soon because of fork?
nov
sr. member
Activity: 433
Merit: 251
Independent crypto developer
If you observe the same situation again or if you have that big vertigo.log file, please let me know.

ZIP it and send it to me for analysis.

I do not observe such behaviour.

My observed vertigo.log is 20 MB max file size.

What is the file name of the 19 GB file exactly you observed?

100% sure. The Vertigo.log file is more or less max size of 20MB. Check file size correctly.

Also vert coins.spvchain file is small few MB and wallet file is also small.

You can delete generated log files eg. vertigo.2014-05-23.log.gz from time to time if needed. But it is small like 220KB.

Hey,

I do not understand the question. Log file is few MB size.

Hey, since I used a SSD... The log file was at 19.4GB the other day, anyway it doesn't have to be like that or something?

You sure? When I open up Vertigo, the logfile has grown to be 19GB before on my system.

If I shutdown Vertigo, and delete the .log file, it will rebuild the log file like it was before. So right now if I would re-sync it... It would be 1GB or bigger

I did check the file size and it did take up 19GB on my SSD. I knew I wasn't tired at the time.

Anyways, it seem to correct itself. the .gz file is 10Kb and the .log is only 1.02MB now upon having both of those files deleted, and starting up Vertigo. I'm not having any issues. It must have only been my rig.

So for any other viewers, don't think it will happen to your rig. This is a pretty great wallet, and I worked with Nov... Well a little to help because I got sick of downloading block chains

vertigo.log
member
Activity: 99
Merit: 10
What is the file name of the 19 GB file exactly you observed?

100% sure. The Vertigo.log file is more or less max size of 20MB. Check file size correctly.

Also vert coins.spvchain file is small few MB and wallet file is also small.

You can delete generated log files eg. vertigo.2014-05-23.log.gz from time to time if needed. But it is small like 220KB.

Hey,

I do not understand the question. Log file is few MB size.

Hey, since I used a SSD... The log file was at 19.4GB the other day, anyway it doesn't have to be like that or something?

You sure? When I open up Vertigo, the logfile has grown to be 19GB before on my system.

If I shutdown Vertigo, and delete the .log file, it will rebuild the log file like it was before. So right now if I would re-sync it... It would be 1GB or bigger

I did check the file size and it did take up 19GB on my SSD. I knew I wasn't tired at the time.

Anyways, it seem to correct itself. the .gz file is 10Kb and the .log is only 1.02MB now upon having both of those files deleted, and starting up Vertigo. I'm not having any issues. It must have only been my rig.

So for any other viewers, don't think it will happen to your rig. This is a pretty great wallet, and I worked with Nov... Well a little to help because I got sick of downloading block chains

vertigo.log
nov
sr. member
Activity: 433
Merit: 251
Independent crypto developer
What is the file name of the 19 GB file exactly you observed?

100% sure. The Vertigo.log file is more or less max size of 20MB. Check file size correctly.

Also vert coins.spvchain file is small few MB and wallet file is also small.

You can delete generated log files eg. vertigo.2014-05-23.log.gz from time to time if needed. But it is small like 220KB.

Hey,

I do not understand the question. Log file is few MB size.

Hey, since I used a SSD... The log file was at 19.4GB the other day, anyway it doesn't have to be like that or something?

You sure? When I open up Vertigo, the logfile has grown to be 19GB before on my system.

If I shutdown Vertigo, and delete the .log file, it will rebuild the log file like it was before. So right now if I would re-sync it... It would be 1GB or bigger

I did check the file size and it did take up 19GB on my SSD. I knew I wasn't tired at the time.

Anyways, it seem to correct itself. the .gz file is 10Kb and the .log is only 1.02MB now upon having both of those files deleted, and starting up Vertigo. I'm not having any issues. It must have only been my rig.

So for any other viewers, don't think it will happen to your rig. This is a pretty great wallet, and I worked with Nov... Well a little to help because I got sick of downloading block chains
member
Activity: 99
Merit: 10
100% sure. The Vertigo.log file is more or less max size of 20MB. Check file size correctly.

Also vert coins.spvchain file is small few MB and wallet file is also small.

You can delete generated log files eg. vertigo.2014-05-23.log.gz from time to time if needed. But it is small like 220KB.

Hey,

I do not understand the question. Log file is few MB size.

Hey, since I used a SSD... The log file was at 19.4GB the other day, anyway it doesn't have to be like that or something?

You sure? When I open up Vertigo, the logfile has grown to be 19GB before on my system.

If I shutdown Vertigo, and delete the .log file, it will rebuild the log file like it was before. So right now if I would re-sync it... It would be 1GB or bigger

I did check the file size and it did take up 19GB on my SSD. I knew I wasn't tired at the time.

Anyways, it seem to correct itself. the .gz file is 10Kb and the .log is only 1.02MB now upon having both of those files deleted, and starting up Vertigo. I'm not having any issues. It must have only been my rig.

So for any other viewers, don't think it will happen to your rig. This is a pretty great wallet, and I worked with Nov... Well a little to help because I got sick of downloading block chains
nov
sr. member
Activity: 433
Merit: 251
Independent crypto developer
100% sure. The Vertigo.log file is more or less max size of 20MB. Check file size correctly.

Also vert coins.spvchain file is small few MB and wallet file is also small.

You can delete generated log files eg. vertigo.2014-05-23.log.gz from time to time if needed. But it is small like 220KB.

Hey,

I do not understand the question. Log file is few MB size.

Hey, since I used a SSD... The log file was at 19.4GB the other day, anyway it doesn't have to be like that or something?

You sure? When I open up Vertigo, the logfile has grown to be 19GB before on my system.

If I shutdown Vertigo, and delete the .log file, it will rebuild the log file like it was before. So right now if I would re-sync it... It would be 1GB or bigger
member
Activity: 99
Merit: 10
Hey,

I do not understand the question. Log file is few MB size.

Hey, since I used a SSD... The log file was at 19.4GB the other day, anyway it doesn't have to be like that or something?

You sure? When I open up Vertigo, the logfile has grown to be 19GB before on my system.

If I shutdown Vertigo, and delete the .log file, it will rebuild the log file like it was before. So right now if I would re-sync it... It would be 1GB or bigger
nov
sr. member
Activity: 433
Merit: 251
Independent crypto developer
Hey,

I do not understand the question. Log file is few MB size.

Hey, since I used a SSD... The log file was at 19.4GB the other day, anyway it doesn't have to be like that or something?
member
Activity: 99
Merit: 10
Hey, since I used a SSD... The log file was at 19.4GB the other day, anyway it doesn't have to be like that or something?
nov
sr. member
Activity: 433
Merit: 251
Independent crypto developer
Dear Vertigo users,

Vertigo - Lightweight Vertcoin Wallet v. 0.4.1.1 Released.

Version 0.4.1.1 released 24 May 2014.
* Fix that allows Windows users to use Vertigo from Guest and all restricted Windows user accounts.
* All observed Windows issue fix.
* VertcoinJ library upgraded to version 0.12 with latest fixes of BitcoinJ 0.12.

www.vertigowallet.org

Regards,
nov
nov
sr. member
Activity: 433
Merit: 251
Independent crypto developer
OK. SavageWS6,

Got your PM. Happy that it works for you now.

Going to do make installers release for everybody.
nov
sr. member
Activity: 433
Merit: 251
Independent crypto developer
member
Activity: 99
Merit: 10
I did notice that the wallet does go into a loop and stops downloading blocks, in which I must close the wallet and restart it to resume downloading blocks.

Code:
12:35:24.575 [NioClientManager] CoreWallet - 19284 blocks left (downloaded 2bfed95ea461fc73ffcb8efddcb091623170077bb350723f63dde41d9f9bcac2)
12:35:24.585 [NioClientManager] AbstractBlockChain - Saw duplicated block in main chain at height 71910: 5317ef016ec9d2736c09d328f61d9d82964fe59a7b69da3a9f33c66de3492e62
12:35:24.585 [NioClientManager] CoreWallet - 19284 blocks left (downloaded 5317ef016ec9d2736c09d328f61d9d82964fe59a7b69da3a9f33c66de3492e62)
12:35:24.595 [NioClientManager] AbstractBlockChain - Saw duplicated block in main chain at height 71911: 725369bcc6e2038c8b91cf59a734cf9bd9b104ec6a3483b898bd6de694079a2f
12:35:24.595 [NioClientManager] CoreWallet - 19284 blocks left (downloaded 725369bcc6e2038c8b91cf59a734cf9bd9b104ec6a3483b898bd6de694079a2f)
12:35:24.605 [NioClientManager] AbstractBlockChain - Saw duplicated block in main chain at height 71912: a5bbc66346d092473300c2a3afd62fc69aeb7eec15c1013b43dd715b24085e84
12:35:24.605 [NioClientManager] CoreWallet - 19284 blocks left (downloaded a5bbc66346d092473300c2a3afd62fc69aeb7eec15c1013b43dd715b24085e84)
12:35:24.615 [NioClientManager] AbstractBlockChain - Saw duplicated block in main chain at height 71913: fa25154991cecf04c8680341f5099b8c7a304a775c9822d11de619ffad4b2cff
12:35:24.616 [NioClientManager] CoreWallet - 19284 blocks left (downloaded fa25154991cecf04c8680341f5099b8c7a304a775c9822d11de619ffad4b2cff)
12:35:24.625 [NioClientManager] AbstractBlockChain - Saw duplicated block in main chain at height 71914: 1a5e4bd4facd45e6eb0ee3dcf21820e70d859a90cbef28b22a0d68ecc3bbbdad
12:35:24.625 [NioClientManager] CoreWallet - 19284 blocks left (downloaded 1a5e4bd4facd45e6eb0ee3dcf21820e70d859a90cbef28b22a0d68ecc3bbbdad)
12:35:24.636 [NioClientManager] AbstractBlockChain - Saw duplicated block in main chain at height 71915: 561caad878e63c798a6671411ec46721a47680ccb0ebc528a2189f468ff634b9
12:35:24.636 [NioClientManager] CoreWallet - 19284 blocks left (downloaded 561caad878e63c798a6671411ec46721a47680ccb0ebc528a2189f468ff634b9)
12:35:24.646 [NioClientManager] AbstractBlockChain - Saw duplicated block in main chain at height 71916: 75d6dae792eb76d43078b3aa7ed7937adb1c9ebce8054251d9b474007e14fb42
12:35:24.646 [NioClientManager] CoreWallet - 19284 blocks left (downloaded 75d6dae792eb76d43078b3aa7ed7937adb1c9ebce8054251d9b474007e14fb42)
12:35:24.655 [NioClientManager] AbstractBlockChain - Saw duplicated block in main chain at height 71917: 9625ec9502b44e270a1aa52e2f71be09e4050cce5b339ab3c6278735c7d4d3a7
12:35:24.655 [NioClientManager] CoreWallet - 19284 blocks left (downloaded 9625ec9502b44e270a1aa52e2f71be09e4050cce5b339ab3c6278735c7d4d3a7)
12:35:24.665 [NioClientManager] AbstractBlockChain - Saw duplicated block in main chain at height 71918: 7907096356ffd39b7aa7eed2cf3347f84a6d3b464057adf7ea403e4a960e6309
12:35:24.665 [NioClientManager] CoreWallet - 19284 blocks left (downloaded 7907096356ffd39b7aa7eed2cf3347f84a6d3b464057adf7ea403e4a960e6309)
12:35:24.675 [NioClientManager] AbstractBlockChain - Saw duplicated block in main chain at height 71919: 953e784af11768e2b869cde55fef1fd0948e141ce2296926e87e0853c805b9d1
12:35:24.676 [NioClientManager] CoreWallet - 19284 blocks left (downloaded 953e784af11768e2b869cde55fef1fd0948e141ce2296926e87e0853c805b9d1)
12:35:24.685 [NioClientManager] AbstractBlockChain - Saw duplicated block in main chain at height 71920: cc7ca917bb4ce66d0502875329f95ea01007811e6deed7d1622663b9040d797c
12:35:24.685 [NioClientManager] CoreWallet - 19284 blocks left (downloaded cc7ca917bb4ce66d0502875329f95ea01007811e6deed7d1622663b9040d797c)
12:35:24.694 [NioClientManager] AbstractBlockChain - Saw duplicated block in main chain at height 71921: be95515e75953e89a68831f3e06f1e28b7f8ec5ca87129875699ceff079d0bd4
12:35:24.694 [NioClientManager] CoreWallet - 19284 blocks left (downloaded be95515e75953e89a68831f3e06f1e28b7f8ec5ca87129875699ceff079d0bd4)
12:35:24.705 [NioClientManager] AbstractBlockChain - Saw duplicated block in main chain at height 71922: dae765456c30e164b7d84a58cc7b45a6bf0f180049cb5c26babe88fca7f50fd4
12:35:24.705 [NioClientManager] CoreWallet - 19284 blocks left (downloaded dae765456c30e164b7d84a58cc7b45a6bf0f180049cb5c26babe88fca7f50fd4)
12:35:24.715 [NioClientManager] AbstractBlockChain - Saw duplicated block in main chain at height 71923: e95952413767d3d4fab8590dc3e3aead101ee175d9f2c75e00586d7970f04ecd
12:35:24.715 [NioClientManager] CoreWallet - 19284 blocks left (downloaded e95952413767d3d4fab8590dc3e3aead101ee175d9f2c75e00586d7970f04ecd)
12:35:24.726 [NioClientManager] AbstractBlockChain - Saw duplicated block in main chain at height 71924: a17f9dee771e8892f96b6a98282ede95a69570b99284beef8d16875f10a527cf
12:35:24.726 [NioClientManager] CoreWallet - 19284 blocks left (downloaded a17f9dee771e8892f96b6a98282ede95a69570b99284beef8d16875f10a527cf)
12:35:24.736 [NioClientManager] AbstractBlockChain - Saw duplicated block in main chain at height 71925: 1f1ce6fafdd9accec35b4824a80ccbfaae1135e48542fd38cf71ac164dc79c3f
12:35:24.736 [NioClientManager] CoreWallet - 19284 blocks left (downloaded 1f1ce6fafdd9accec35b4824a80ccbfaae1135e48542fd38cf71ac164dc79c3f)
12:35:24.747 [NioClientManager] AbstractBlockChain - Saw duplicated block in main chain at height 71926: d6033427973091933620b333c1dd0daf2a6fe8e852c91a5a4b7dc6394ef4c293
12:35:24.747 [NioClientManager] CoreWallet - 19284 blocks left (downloaded d6033427973091933620b333c1dd0daf2a6fe8e852c91a5a4b7dc6394ef4c293)
12:35:24.757 [NioClientManager] AbstractBlockChain - Saw duplicated block in main chain at height 71927: d99946615bc49f159a66f52032213c200bb10d3575840a09efe582a1ddc804a1
12:35:24.757 [NioClientManager] CoreWallet - 19284 blocks left (downloaded d99946615bc49f159a66f52032213c200bb10d3575840a09efe582a1ddc804a1)
12:35:24.766 [NioClientManager] AbstractBlockChain - Saw duplicated block in main chain at height 71928: eaa55ab1f59f9d5a1dd2d54107560e7e05cbe48b3aab133b40542260088b5f67
12:35:24.767 [NioClientManager] CoreWallet - 19284 blocks left (downloaded eaa55ab1f59f9d5a1dd2d54107560e7e05cbe48b3aab133b40542260088b5f67)
12:35:24.777 [NioClientManager] AbstractBlockChain - Saw duplicated block in main chain at height 71929: 345483f4126dbeb3adc7a45e7220868bea6bcaf55e9cbcf26782fbb77a9a625f
12:35:24.777 [NioClientManager] CoreWallet - 19284 blocks left (downloaded 345483f4126dbeb3adc7a45e7220868bea6bcaf55e9cbcf26782fbb77a9a625f)
12:35:24.787 [NioClientManager] AbstractBlockChain - Saw duplicated block in main chain at height 71930: af954d2264fca41263728923a1a7ce3d192a60cfd9c1f0bc7e2484e457929b03
12:35:24.787 [NioClientManager] CoreWallet - 19284 blocks left (downloaded af954d2264fca41263728923a1a7ce3d192a60cfd9c1f0bc7e2484e457929b03)
12:35:24.796 [NioClientManager] AbstractBlockChain - Saw duplicated block in main chain at height 71931: d454ed494422e6c9cf8e8328ccde051f0fcc8adecbdb7afb6c3654ae691e1eec
12:35:24.796 [NioClientManager] CoreWallet - 19284 blocks left (downloaded d454ed494422e6c9cf8e8328ccde051f0fcc8adecbdb7afb6c3654ae691e1eec)
12:35:24.806 [NioClientManager] AbstractBlockChain - Saw duplicated block in main chain at height 71932:

I also observed, when you check the "All" box to send Vertcoins, it displays 0 when you check it, but it still sends the coin to my wallet. I just restarted my computer, and now its redownloading all 94k blocks again, is this gonna happen everytime when I use this wallet?







nov
sr. member
Activity: 433
Merit: 251
Independent crypto developer
Here is recent version of Vertigo. www.vertigowallet.org/new/VertigoNewRelease.jar

There is fix for Windows issue and improved synchronisation speed by providing VertcoinJ 0.12 with the steps HashEngineering suggested included.

Let me know how this version works for you, so new installers can be made and uploaded to official Vertigo download links, please?
Pages:
Jump to: