novacoin.git
10 years agoAdd trusted N for MainNet and TestNet, set denomination value to 50 coins
alex [Sun, 8 Sep 2013 19:41:39 +0000]
Add trusted N for MainNet and TestNet, set denomination value to 50 coins

10 years agoAdd ZeroTest self-testing routine
alex [Sun, 8 Sep 2013 16:45:36 +0000]
Add ZeroTest self-testing routine

Allows user to run basic tests upon initialization. It's available when -zerotest option is used, results are written into debug.log file.

10 years agoAdd OpenMP linking flag
alex [Sun, 8 Sep 2013 15:25:48 +0000]
Add OpenMP linking flag

10 years agoImport ZeroCoin adapted sources
alex [Sun, 8 Sep 2013 14:47:29 +0000]
Import ZeroCoin adapted sources

Import and build/linking only. Provided functionality isn't used yet.

10 years agoRemoving unused includes
alex [Sun, 8 Sep 2013 13:34:44 +0000]
Removing unused includes

10 years agoCrypter.h security improvement, start working on ZeroCoin support
alex [Sun, 8 Sep 2013 13:28:46 +0000]
Crypter.h security improvement, start working on ZeroCoin support

* Use OPENSSL_cleanse instead of memset for keys cleanup;
* Merge CBigNum prime operations from ZeroCoin.

10 years agoUse MinGW64 compilers suite for building windows executables
alex [Fri, 6 Sep 2013 20:31:25 +0000]
Use MinGW64 compilers suite for building windows executables

x86_64 target currently isn't supported in the main branch yet, only i686 target available. In the future updates it will be possible to build for the both targets (x86_64 and i686).

10 years agoAlways reserialize transactions before relaying
alex [Wed, 4 Sep 2013 20:12:02 +0000]
Always reserialize transactions before relaying

This is more proper way to fix CVE-2013-4627. See https://bitslog.wordpress.com/2013/07/18/buggy-cve-2013-4627-patch-open-new-vectors-of-attack/ for details.

10 years agoDon't close leveldb in checkpoints handling functions
alex [Mon, 2 Sep 2013 19:14:16 +0000]
Don't close leveldb in checkpoints handling functions

10 years agoFix WIN32 compilation issues
alex [Sat, 31 Aug 2013 20:25:12 +0000]
Fix WIN32 compilation issues

10 years agoFix error while building on non-c++0x compilers
alex [Sat, 31 Aug 2013 16:05:53 +0000]
Fix error while building on non-c++0x compilers

10 years agomakefile fix
alex [Sat, 31 Aug 2013 15:26:24 +0000]
makefile fix

10 years agoBump version to 0.4.4.4 v0.4.4.4
alex [Sat, 31 Aug 2013 14:51:30 +0000]
Bump version to 0.4.4.4

10 years agoAdd USE_O3 option
alex [Sat, 31 Aug 2013 14:04:27 +0000]
Add USE_O3 option

Allows user to build Qt version with O3 optimization flag without changing ENV variables

10 years agoSwitch LevelDB back to default database engine
alex [Sat, 31 Aug 2013 13:35:39 +0000]
Switch LevelDB back to default database engine

10 years agoSplit getmininginfo implementation
alex [Wed, 28 Aug 2013 23:57:29 +0000]
Split getmininginfo implementation

10 years agoSplit getmininginfo implementation
alex [Wed, 28 Aug 2013 23:52:46 +0000]
Split getmininginfo implementation

10 years agoReplace -nosynccheckpoints with a new -cppolicy=mode option
alex [Wed, 28 Aug 2013 19:00:51 +0000]
Replace -nosynccheckpoints with a new -cppolicy=mode option

Possible values:

* strict - default mode, verify blocks to satisfy syncronized checkpoints, and reject if necessary;
* advisory - verify blocks to satisfy syncronized checkpoints, and display warning if necessary;
* permissive - don't perform any checkings.

10 years agoRevert 11a13b1
alex [Tue, 27 Aug 2013 21:41:03 +0000]
Revert 11a13b1

10 years agoFix
alex [Tue, 27 Aug 2013 20:46:24 +0000]
Fix

10 years agoExclude CreatePidFile on Win32 platform
alex [Tue, 27 Aug 2013 20:41:51 +0000]
Exclude CreatePidFile on Win32 platform

10 years agoAdd BOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN
alex [Tue, 27 Aug 2013 20:33:57 +0000]
Add  BOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN

10 years agoRPC: add blocktrust and chaintrust fields into block dump
alex [Tue, 27 Aug 2013 19:59:59 +0000]
RPC: add blocktrust and chaintrust fields into block dump

10 years agoFix coinbase out-of-bounds check
alex [Tue, 27 Aug 2013 19:51:11 +0000]
Fix coinbase out-of-bounds check

10 years agoSet NOBLKS_VERSION_END to 60006
alex [Tue, 27 Aug 2013 19:32:54 +0000]
Set NOBLKS_VERSION_END to 60006

10 years agoIncrease minimum protocol version
alex [Tue, 27 Aug 2013 19:30:41 +0000]
Increase minimum protocol version

10 years agoRemove migration code
alex [Mon, 26 Aug 2013 00:00:40 +0000]
Remove migration code

10 years agoMessage typo fix
alex [Sun, 25 Aug 2013 23:43:29 +0000]
Message typo fix

10 years agoDon't close database during proof-of-stake checking
alex [Sun, 25 Aug 2013 22:44:29 +0000]
Don't close database during proof-of-stake checking

10 years agoMinGW makefile fix
alex [Sun, 25 Aug 2013 21:13:38 +0000]
MinGW makefile fix

10 years agoDisable levelDB support by default
alex [Sun, 25 Aug 2013 15:14:22 +0000]
Disable levelDB support by default

Will be enabled back after memory leak mitigation

10 years agoMinGW32: Workaround for headless executable build
alex [Sun, 25 Aug 2013 15:04:00 +0000]
MinGW32: Workaround for headless executable build

10 years agoExit after blocks import
alex [Sun, 25 Aug 2013 14:51:57 +0000]
Exit after blocks import

10 years agoFix target name
alex [Sun, 25 Aug 2013 14:09:49 +0000]
Fix target name

10 years agoSmall and simple hack to override compiler warning
alex [Sun, 25 Aug 2013 14:03:23 +0000]
Small and simple hack to override compiler warning

10 years agoAdd Google's LevelDB support
alex [Sun, 25 Aug 2013 00:16:40 +0000]
Add Google's LevelDB support

This commit imports LevelDB database sources tree and implements alternative CTxDB storage methods implementation (backported from bitcoin 0.8).

10 years agoCheckWork() new block message fix
alex [Sat, 24 Aug 2013 16:53:29 +0000]
CheckWork() new block message fix

10 years agoTranslation update
alex [Sat, 24 Aug 2013 16:28:24 +0000]
Translation update

10 years agoMiner module commit.
alex [Sat, 24 Aug 2013 16:06:38 +0000]
Miner module commit.

10 years agoMove proof-of-stake miner and block creation to separate miner.cpp module.
alex [Sat, 24 Aug 2013 16:04:09 +0000]
Move proof-of-stake miner and block creation to separate miner.cpp module.

Public declarations moved to miner.h.

10 years agoRemove loop macro from util.h
alex [Sat, 24 Aug 2013 14:55:18 +0000]
Remove loop macro from util.h

This macro causes a lot of problems for Qt.

10 years agoUse existing RPC_INVALID_PARAMETER constant
alex [Sat, 24 Aug 2013 14:34:15 +0000]
Use existing RPC_INVALID_PARAMETER constant

10 years agoMitigate Timing Attacks On Basic RPC Authorization
alex [Sat, 24 Aug 2013 14:21:53 +0000]
Mitigate Timing Attacks On Basic RPC Authorization

Eliminates the possibility of timing attacks by changing the way the two passwords are compared.
It iterates through each char in the strings, and if the two chars it is comparing aren't the same, then it adds 1 to nReturn and the function, once it's done comparing all the chars, will return false. Previously, the function would return false on the first char that didn't match, allowing a possible attacker to run a timing attack.

See

https://github.com/bitcoin/bitcoin/pull/2886
http://rdist.root.org/2010/01/07/timing-independent-array-comparison/

for more detailed explanation.

10 years agoAdd conditions to resolve BDB 4.6 compatibility issues.
alex [Sat, 24 Aug 2013 14:02:30 +0000]
Add conditions to resolve BDB 4.6 compatibility issues.

Successfully compiled and works with BDB 4.6.

10 years agoRemove brace-enclosed initializer
alex [Sat, 24 Aug 2013 13:56:13 +0000]
Remove brace-enclosed initializer

Due to pre-C++0x compilers compatibility issue.

10 years agoBump version to 0.4.4.3 v0.4.4.3
alex [Fri, 23 Aug 2013 23:19:27 +0000]
Bump version to 0.4.4.3

10 years agoAdd scrypt+sha512 key derivation method.
alex [Fri, 23 Aug 2013 21:56:49 +0000]
Add scrypt+sha512 key derivation method.

Disabled by default. You can use -derivationmethod option to choose which method will be used for wallet encryption keys generation.

Possible values:

* sha512 - default, compatible with bitcoin;
* scrypt+sha512 - selects scrypt derivation function.

Please note that this option only allows you to select default method. If you are already using encrypted wallet then suitable derivation method will be selected automatically.

10 years agoRename scrypt_mine.(cpp|h) to scrypt.(cpp|h)
alex [Fri, 23 Aug 2013 18:34:03 +0000]
Rename scrypt_mine.(cpp|h) to scrypt.(cpp|h)

10 years agoCleanup
alex [Fri, 23 Aug 2013 18:21:00 +0000]
Cleanup

10 years agoMinor optimization in PoS kernel: call scrypt_blockhash once time instead of multiple...
alex [Fri, 23 Aug 2013 17:59:27 +0000]
Minor optimization in PoS kernel: call scrypt_blockhash once time instead of multiple times

10 years agoScrypt hashing implementation update
alex [Fri, 23 Aug 2013 16:23:30 +0000]
Scrypt hashing implementation update

* block_header structure removed;
* srypt_hash splitted in scrypt_hash(data, datalen) and scrypt_blockhash(data).

10 years agoRename BitcoinMiner() function to StakeMiner(), remove some regacy code.
alex [Thu, 22 Aug 2013 19:23:08 +0000]
Rename BitcoinMiner() function to StakeMiner(), remove some regacy code.

10 years agoSet correct name for boost IPC
alex [Thu, 22 Aug 2013 18:31:44 +0000]
Set correct name for boost IPC

10 years agoStake generation changes
alex [Wed, 21 Aug 2013 20:08:00 +0000]
Stake generation changes

1) Remove stakes verification code from CheckWork() function, create separate CheckStake() function.
2) Add -stakepooledkeys option, which allows user to get keys for the last coinstake output from keypool. This feature disabled by default.

10 years agoBump version v0.4.4.2-nvc
alex [Tue, 20 Aug 2013 07:53:09 +0000]
Bump version

10 years agoRemove the LOCKS_SWITCH_TIME conditions
alex [Tue, 20 Aug 2013 07:35:38 +0000]
Remove the LOCKS_SWITCH_TIME conditions

10 years agoDo not display sync-checkpoint related warnings if -nosynccheckpoints option is set.
alex [Mon, 19 Aug 2013 22:05:14 +0000]
Do not display sync-checkpoint related warnings if -nosynccheckpoints option is set.

10 years agoUpdate block checkings
alex [Mon, 19 Aug 2013 21:49:44 +0000]
Update block checkings

* Checkpoints list updated, removed some legacy checkpoints and added the new one
* Stake modifier checkpoint added
* ComputeMinWork/ComputeMinStake functions

10 years agoRPC: optional size parameter for keypoolrefill
alex [Sun, 18 Aug 2013 17:00:35 +0000]
RPC: optional size parameter for keypoolrefill

Users are now permitted to increase the keypool size at runtime.

10 years agoMerge pull request #5 from awoland/master
Balthazar [Sun, 18 Aug 2013 16:46:39 +0000]
Merge pull request #5 from awoland/master

10 years agoP2SH related RPC improvements
alex [Sun, 18 Aug 2013 16:13:38 +0000]
P2SH related RPC improvements

* New addredeemscript and decodescript RPC calls
* validateaddress now provides redeem script

10 years agoBUGFIX: Move boost/version.hpp include from db.cpp to walletdb.cpp where BOOST_VERSIO...
alex [Sun, 18 Aug 2013 14:25:08 +0000]
BUGFIX: Move boost/version.hpp include from db.cpp to walletdb.cpp where BOOST_VERSION is used.

10 years agoRemove asserts
alex [Sun, 18 Aug 2013 14:12:33 +0000]
Remove asserts

10 years agoDo not return addresses onder than specified lifespan.
alex [Sun, 18 Aug 2013 14:08:47 +0000]
Do not return addresses onder than specified lifespan.

-addrlifespan is 7 days by default.

10 years agoOptimization: disable block signature varification during initial block index checking,
alex [Sun, 18 Aug 2013 00:13:48 +0000]
Optimization: disable block signature varification during initial block index checking,
by default. It's still could be enabled using -checklevel=7 option. It's safe because signature checked it ProcessBlock() already.

10 years agoUpdate getmininginfo
alex [Sat, 17 Aug 2013 20:44:39 +0000]
Update getmininginfo

* More correct DayWeight calculation for local stakes
* Network stake weight calculation precision improvement
* Passive weight isn't calculated anymore

10 years agoRestore testnet genesis block
alex [Fri, 16 Aug 2013 21:56:44 +0000]
Restore testnet genesis block

10 years agoMinor optimization
alex [Fri, 16 Aug 2013 21:46:30 +0000]
Minor optimization

* Timestamp field added into checkpoints table
* Skip header signature checking while connecting block (it's safe because ProcessBlock still performs signatures checking)
* Skip PoW header ECDSA signatures validation since block #9689 until last checkpoint

10 years agoResources update v0.4.4.1-nvc
alex [Thu, 15 Aug 2013 20:47:09 +0000]
Resources update

Add translation for sync checkpoints option

10 years agoUpdate DNS seed option description
alex [Thu, 15 Aug 2013 20:43:47 +0000]
Update DNS seed option description

10 years agoBump version to 0.4.4.1
alex [Thu, 15 Aug 2013 20:41:05 +0000]
Bump version to 0.4.4.1

10 years agoEnable DNS seeding
alex [Wed, 14 Aug 2013 09:02:57 +0000]
Enable DNS seeding

10 years agoFix TimeWeight calculation
alex [Tue, 13 Aug 2013 18:29:05 +0000]
Fix TimeWeight calculation

TimeWeight is currently limited to 60 days due to inaccurracy. This will be corrected since 01 Jan 2014.

10 years agonTimeWeight calculation issue
alexhz [Sun, 11 Aug 2013 20:57:03 +0000]
nTimeWeight calculation issue

Originally it was planned to start nTimeWeight calculation from zero at the 30-day min age. This should increase
active coins participating the hash and help to secure the network when proof-of-stake difficulty is low.

Anyway, this feature is disabled for now and needs some discussion.

10 years agoUpdate notificator.cpp
awoland [Tue, 6 Aug 2013 17:02:40 +0000]
Update notificator.cpp

This simply patch fix build error in notificator.cpp:116
¨const uint32_t *data = reinterpret_cast<const uint32_t*>(tmp.constBits());¨ => ¨const uint32_t *data = reinterpret_cast<const uint32_t*>(tmp.bits());¨

10 years agoUpdate readme files v0.4.4-nvc
alex [Sat, 3 Aug 2013 21:32:53 +0000]
Update readme files

Set actual version and add description about the coinstake reward limit.

10 years agoSet correct prefix for URI
alex [Sat, 3 Aug 2013 20:07:16 +0000]
Set correct prefix for URI

This sets the novacoin:// prefix for URI handling and QR Code generation

10 years agoAdd debug message
alex [Sat, 3 Aug 2013 19:54:23 +0000]
Add debug message

Print out the reward truncation message if -princreation and -debug flags are set.

10 years agoAdd upper limit for coinstake reward
alexhz [Fri, 2 Aug 2013 12:57:58 +0000]
Add upper limit for coinstake reward

Such limit should stimulate large stake holders to use smaller inputs. This will ensure the growth of the difficulty and chain's strength.

10 years agoRemove legacy block schema version checking
alex [Thu, 1 Aug 2013 18:14:01 +0000]
Remove legacy block schema version checking

10 years agoRe-format some error messages
alex [Wed, 31 Jul 2013 22:35:09 +0000]
Re-format some error messages

10 years agoExtend coinstake reward verification error message
alex [Wed, 31 Jul 2013 22:24:13 +0000]
Extend coinstake reward verification error message

10 years agoTreat non-empty coinbase in PoS blocks as DoS attempt
alex [Wed, 31 Jul 2013 22:13:11 +0000]
Treat non-empty coinbase in PoS blocks as DoS attempt

10 years agoRemove static flag
alex [Tue, 30 Jul 2013 17:45:25 +0000]
Remove static flag

10 years agoIncrease block schema version
alex [Tue, 30 Jul 2013 17:00:23 +0000]
Increase block schema version

10 years agoFix message
alex [Tue, 30 Jul 2013 16:27:52 +0000]
Fix message

10 years agoBump version numbers
alex [Tue, 30 Jul 2013 16:21:18 +0000]
Bump version numbers

10 years agoRemove CPU miner related code
alex [Tue, 30 Jul 2013 16:13:55 +0000]
Remove CPU miner related code

10 years agoBUGFIX: prevent Qt client crash at startup with an empty directory
alex [Mon, 29 Jul 2013 23:30:46 +0000]
BUGFIX: prevent Qt client crash at startup with an empty directory

10 years agoAdd -walletnotify option
alex [Mon, 29 Jul 2013 23:21:32 +0000]
Add -walletnotify option

This option provides an opportunity to call external script on new transactions

10 years agoAdd timeoffset to getinfo output
alex [Mon, 29 Jul 2013 23:10:39 +0000]
Add timeoffset to getinfo output

10 years agoAdd "Copy transaction ID" feature
alex [Mon, 29 Jul 2013 22:59:59 +0000]
Add "Copy transaction ID" feature

10 years agoAddress in listunspent
alex [Mon, 29 Jul 2013 22:23:57 +0000]
Address in listunspent

10 years agoFix getbalance
alex [Mon, 29 Jul 2013 22:20:31 +0000]
Fix getbalance

10 years agoUse uint256 instead of CBigNum for ChainTrust
alex [Mon, 29 Jul 2013 22:12:14 +0000]
Use uint256 instead of CBigNum for ChainTrust

10 years agoDon't announce non-peer CNodes v0.4.4-pre
alex [Mon, 29 Jul 2013 00:10:56 +0000]
Don't announce non-peer CNodes

10 years agoBUGFIX: SignCompact/SignCompactSignature memory leak
alex [Sun, 28 Jul 2013 23:25:22 +0000]
BUGFIX: SignCompact/SignCompactSignature memory leak

10 years agoBUGFIX: Don't try to resize vector to negative size.
alex [Sun, 28 Jul 2013 23:18:17 +0000]
BUGFIX: Don't try to resize vector to negative size.

10 years agoKey metadata update + new timestamp conversion function
alex [Sun, 28 Jul 2013 23:07:03 +0000]
Key metadata update + new timestamp conversion function

10 years agoAdd wallet dump functionality and key creation timestamps
alex [Sun, 28 Jul 2013 18:45:12 +0000]
Add wallet dump functionality and key creation timestamps