aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core (follow)
AgeCommit message (Collapse)AuthorFilesLines
2015-01-04Minor bug fixes and debug printsThomas Winget2-6/+122
Blockchain and BlockchainLMDB classes now have a debug print at the beginning of each function at log level 2. These can be removed at any time, but for now are quite useful. Blockchain runs, and adds the genesis block just fine, but for some reason isn't getting new blocks.
2015-01-04minor fixes to Blockchain.cppThomas Winget2-3/+7
2015-01-04Integrate BlockchainDB into cryptonote_coreThomas Winget8-24/+58
Probably needs more looking at -- lot of things were done...in a rushed sort of way. That said, it all builds and *should* be at least testable. update for rebase (warptangent 2015-01-04) fix conflicts with upstream CMakeLists.txt files src/CMakeLists.txt (remove edits from original commit) tests/CMakeLists.txt (remove edits from original commit) src/cryptonote_core/CMakeLists.txt (edit) - use blockchain db .cpp and .h files - add LMDB_LIBRARIES
2015-01-04All LMDB BlockchainDB implemented, not testedThomas Winget2-135/+900
All of the functionality for the LMDB implementation of BlockchainDB is implemented, but only what is in tests/unit_tests/BlockchainDB.cpp has been tested. This is basically add a block, see if you can get the block and a tx from the block. More tests should be added at some point.
2015-01-04LMDB blockchain: remove outputs and spent keysThomas Winget1-0/+63
2015-01-04Adding block data to LMDB BlockchainDB codedThomas Winget3-8/+258
Still needs testing (and need to write a few more unit tests), but everything should be there. Lots of unfortunate duplication, but...well, I can't see a way around it using LMDB. A couple of other minor changes in this commit, only slightly relevant.
2015-01-04Parts of LMDB impl of BlockchainDB done and workingThomas Winget4-69/+431
The rest should just be tedious copypasta and modification.
2015-01-04Initial commit of lmdb BlockchainDB implThomas Winget2-0/+472
2015-01-04Initial commit of BlockchainDB tests, other miscThomas Winget2-6/+25
miscellaneous changes to BlockchainDB/blockchain as well, namely replacing instances of std::list with std::vector
2015-01-04update new blockchain to build with new changesThomas Winget2-13/+34
Still need to add in the new checkpointing functionality, as well as touch up a few things, but is okay for now.
2015-01-04stupid past me, fixing typos and shit...Thomas Winget1-21/+21
2015-01-04missing typedefThomas Winget1-0/+3
2015-01-04import of BlockchainDB filesThomas Winget4-0/+3003
tried rebasing, tree-filter, and many other things. at this point, the history of these files previous to this can live on in my bc2 branch, as I'm importing them as-is to here.
2015-01-02year updated in licenseRiccardo Spagni29-29/+29
2014-12-01ensure that keccak is called on view spend key, not a possibly ↵warptangent1-1/+1
pre-sc_reduce32 version of it - for deriving view secret key
2014-11-26Merge pull request #188Riccardo Spagni2-2/+2
dde7897 Disable legacy fees for now (iamsmooth) cc74b43 Remove DEFAULT_FEE, add temporary acceptance of too-small per-kb fee >= 0.1, denominations based on DEFAULT_DUST_THRESHOLD, document fee arg to create_transactions as unused, se DEFAULT_DUST_THRESHOLD for wallet dust collection instead of calcualted tx fee (iamsmooth)
2014-11-25Merge pull request #180Riccardo Spagni1-0/+80
ce71c01 cmake: work around a bug with implicit link directories (Ben Boeckel) de4fc40 mingw: copy required libraries to the build tree (Ben Boeckel) ec54e2f cmake: place binaries together in the build tree (Ben Boeckel) 18c56ab msys: don't use LTO (Ben Boeckel) 5680c9c msys: factor out -Werror on msys (Ben Boeckel) 4751542 msys: look in msys' directory for files (Ben Boeckel) d855fe4 miniupnpc: bump the _POSIX_C_SOURCE feature macro (Ben Boeckel) c696492 unbound: fix getaddrinfo detection for 32-bit windows (Ben Boeckel) e377687 cmake: Windows and static builds need this (Ben Boeckel) 01895dd cmake: fix up link lines (Ben Boeckel) 4b6515c unbound: fix type checking (Ben Boeckel) d43a20f unbound: plumb the libdir up (Ben Boeckel) 7d708e4 cmake: support 2.8.7 (Ben Boeckel) 464c280 cmake: fix up miniupnpc's define (Ben Boeckel) 9689df9 cmake: clean up EXTRA_LIBRARIES (Ben Boeckel) 3b7bdcb cmake: set the project name (Ben Boeckel) 0f0efc4 cmake: prepend to CMAKE_MODULE_PATH (Ben Boeckel) 031e3da cmake: remove scream-make (all-caps functions) (Ben Boeckel) abbd5c0 unbound: import cmake build system (Ben Boeckel) e59b5b7 miniupnpc: clean up build system (Ben Boeckel) 475fe20 cmake: minor cleanups (indentation and typos) (Ben Boeckel) 799e8b2 cmake: use option() for STATIC (Ben Boeckel) c24d22b cmake: clean up if auto-dereferencing (Ben Boeckel) 9ed415a build: inform the build of what generates version.h (Ben Boeckel) eba180a cmake: support git info in released tarballs (Ben Boeckel) eeffac6 cmake: fix up BOOST_IGNORE_SYSTEM_PATHS (Ben Boeckel) a43f1a8 cmake: remove configuration variables (Ben Boeckel) a87ce09 cmake: factor out error messages (Ben Boeckel) 9aa48b6 miniupnpc: clear out else/endfoo command arguments (Ben Boeckel) 8a86ac8 daemon_tests: update cmake code (Ben Boeckel) fa3ff75 gtest: support an external gtest (Ben Boeckel) 7bfcffa cmake: put each test executable in its own directory (Ben Boeckel) f53f047 cmake: handle private vs. public headers (Ben Boeckel) 55ca7d3 cmake: refactor common code with libraries (Ben Boeckel) c773f46 cmake: refactor common code with executables (Ben Boeckel) 89cff7b cmake: put each library into its own directory (Ben Boeckel)
2014-11-11Disable legacy fees for nowiamsmooth1-1/+1
2014-11-09Remove DEFAULT_FEE, add temporary acceptance of too-small per-kb fee >= 0.1, ↵iamsmooth2-2/+2
denominations based on DEFAULT_DUST_THRESHOLD, document fee arg to create_transactions as unused, se DEFAULT_DUST_THRESHOLD for wallet dust collection instead of calcualted tx fee
2014-11-06per kb feesThomas Winget1-2/+5
2014-10-24cmake: support 2.8.7Ben Boeckel1-2/+2
Older versions of CMake support LINK_{PUBLIC,PRIVATE} while newer versions prefer PUBLIC and PRIVATE instead, but still support the LINK_ prefix.
2014-10-23cmake: handle private vs. public headersBen Boeckel1-2/+7
2014-10-23cmake: refactor common code with librariesBen Boeckel1-9/+1
2014-10-23cmake: put each library into its own directoryBen Boeckel1-0/+83
This cleans up the CMake code and shows patterns more easily (to be refactored in the next commit).
2014-10-07added hardcoded checkpoint at block 249380Riccardo Spagni1-0/+1
2014-10-06Merge pull request #167Riccardo Spagni1-2/+2
aeaa44f fixed signed-unsigned issue from 166 (Thomas Winget)
2014-10-03fixed checkpointing bugRiccardo Spagni1-1/+1
2014-10-03MoneroPulse log wording tweaksRiccardo Spagni2-4/+5
2014-10-02fixed signed-unsigned issue from 166Thomas Winget1-2/+2
Loss of entropy can be discussed at a later time, but is not deemed a significant issue for now.
2014-10-02moved checkpoint log levelRiccardo Spagni1-1/+1
2014-10-02moved file checkpointing log output to log1Riccardo Spagni1-6/+6
2014-09-30Daemon should now exit on conflicting checkpointsThomas Winget2-0/+13
If the "enforce DNS checkpoints" flag is not enabled, it should not exit if DNS checkpoints conflict with the others, but should still print a warning to the user.
2014-09-30various changes to runtime checkpoint updatingThomas Winget7-23/+113
json checkpoints will be checked every 10 minutes, dns every 60. json checkpoints always enforced, dns still with flag. conflicting checkpoints is hard fail, but soft if dns enforce flag not set and dns checkpoints are wonky.
2014-09-30Fixed segfault with checkpoints loadingThomas Winget2-0/+10
Bounds checking on blockchain_storage' m_blocks.size() when validating against checkpoints. Also moved initial json & DNS checkpoints load to after blockchain init.
2014-09-30DNS checkpoint updating added, and daemon flag to enforce themThomas Winget6-14/+98
The daemon should now check for updated checkpoints from checkpoints.moneropulse.org as well as from the configured json file every ~1hr (and on launch). The daemon now has a flag to enable enforcing these checkpoints (rather than just printing a warning when they fail). TODO: an easily configurable list of DNS servers to check for checkpoints as opposed to the hard-coded "checkpoints.moneropulse.org"
2014-09-30reload checkpoints file every ~hr and print if any failThomas Winget8-71/+168
also some other minor bug squashing and code formatting
2014-09-30Adding an identical existing checkpoint should not errorThomas Winget1-2/+7
For checkpoints being read at runtime to work correctly, the checkpoint add code needs to not return false if a checkpoint is added that already exists. In this case, instead return false if the checkpoint is for a height that already has a checkpoint and the hashes are different.
2014-09-25Revert "low risk, potentially varint overflow bug patched thanks to BBR"Riccardo Spagni7-30/+13
This reverts commit 4e2b2b942daa4206ec44c66e59863670dfe3fde4.
2014-09-24low risk, potentially varint overflow bug patched thanks to BBRRiccardo Spagni7-13/+30
2014-09-25Added ability to read chechpoint hashes from json file in data folderTomer Konforty3-0/+60
2014-09-24checkpointiamsmooth1-0/+1
2014-09-24checkpointiamsmooth1-0/+2
2014-09-24checkpointsiamsmooth1-0/+5
2014-09-24checkpointiamsmooth1-0/+1
2014-09-24checkpointsiamsmooth1-3/+5
2014-09-15Another preprocessor fix (difficulty.cpp)Zachary Michaels1-1/+1
2014-09-15Separate testnet address prefixZachary Michaels7-14/+37
2014-09-15Separate testnet default data dirZachary Michaels2-4/+5
2014-09-15Pass tx and nonce to genesis block constructorZachary Michaels3-23/+34
2014-09-15Reorganize testnet constantsZachary Michaels2-6/+5
2014-09-15Add testnet flagZachary Michaels6-11/+51
Source: cryptonotefoundation
2014-09-13fix incorrect error message (obvious cut and paste bug from upstream)iamsmooth1-1/+1
2014-09-12output rng fix from boolberryiamsmooth1-2/+1
2014-09-09a few more error messages moved to log level 1fluffypony2-15/+15
2014-09-09moved non-critical warnings and errors to log level 1fluffypony3-72/+72
2014-09-06fix checkpointsiamsmooth2-4/+7
2014-09-06bug fix to checkpoint-on-restore; still fails on 612iamsmooth1-1/+1
2014-09-06checkpoints on restore; currently fails on 212 checkpointiamsmooth2-2/+24
2014-09-06override for get_block_longhash for block 202612Thomas Winget1-0/+7
2014-09-06added double-check for 202612 block idThomas Winget1-1/+13
if a new block has the same block id as 202612 but the wrong blobdata, this will tell the caller that the block id is actually null_hash rather than the 202612 block id.
2014-09-06hex_to_pod needs the destination as an arg, as opposed to it returning the podThomas Winget1-1/+1
2014-09-06Override for block hashing for block 202612Thomas Winget1-0/+10
Since we need to fix tree_hash, but doing so would invalidate the block id for block 202612, this fix should check to see if we're trying to get the block id for 202612 (if its blob hash matches) and return the "old" block id, for backwards compatibility.
2014-08-03restored wallets will have timestamp set to June 8 2014.Thomas Winget1-1/+17
2014-08-02Merge pull request #73 from jakoblind/refresh_heightRiccardo Spagni4-7/+11
Optional height parameter for wallet refresh
2014-08-01Merge pull request #64 from mikezackles/bytecoin_tx_pool_tmpRiccardo Spagni3-95/+82
tx pool fixes, courtesy of Bytecoin
2014-08-01#36 simplewallet refresh include optional height paramJakob Lind4-7/+11
height param is used optionally in refresh command TODO: This should also be the default behaviour when generating a new wallet.
2014-07-23License updated to BSD 3-clausefluffypony27-85/+783
2014-07-17Remove dead codeZachary Michaels1-17/+0
2014-07-17Remove second tx size checkZachary Michaels1-7/+0
2014-07-17Don't check max tx size when adding to blockZachary Michaels1-8/+0
This is now done when adding transactions to the pool.
2014-07-17Don't check for min fee when adding tx to blockZachary Michaels1-5/+0
This is now done when transactions enter the pool.
2014-07-17Decrease max block size from 200% median to 130%Zachary Michaels1-1/+3
2014-07-17Use print_money in logZachary Michaels1-1/+1
2014-07-17Minimum tx fee for entering poolZachary Michaels1-0/+8
2014-07-17Start fresh if tx_pool deserialize failsZachary Michaels1-2/+6
2014-07-17Add transaction size limitZachary Michaels1-0/+24
Transactions larger than the limit will not enter the pool
2014-07-17Use const where appropriate in tx_poolZachary Michaels3-50/+36
2014-07-17Make some tx_pool methods staticZachary Michaels1-2/+2
2014-07-17Make some tx_pool methods privateZachary Michaels1-6/+6
2014-07-01Remove unused functionZachary Michaels2-19/+0
2014-07-01Explicit namespacesZachary Michaels1-11/+8
2014-07-01Remove redeclarationZachary Michaels1-1/+0
2014-07-01C++ style castZachary Michaels1-1/+1
2014-07-01Comment unused functions in cryptonote_coreZachary Michaels2-15/+14
2014-06-26set max block size for gbtmydesktop1-0/+8
2014-06-24fix function typomonero-project1-1/+1
2014-06-24Fix copy/paste bug, thx Boolberrymonero-project1-3/+3
2014-06-16Update miner.cppNoodleDoodleNoodleDoodleNoodleDoodleNoo1-1/+4
1. Added support for scratchpad memory allocation.
2014-06-15proper tx_pool handling from CryptoZoidberg / BBRfluffypony3-1/+34
2014-06-14added checkpoint @ 80000monero-project1-0/+1
2014-06-12change hash for keygen from blake to keccaktom1-2/+2
2014-06-12allow two-random-numbers wallet generation (but not as default)Thomas Winget2-3/+3
2014-06-12fixed some pointer- and loop-based derpsThomas Winget1-0/+3
2014-06-12builds, but doesn't link. other than that, electrum-style recovery ↵Thomas Winget2-4/+11
implemented (but not tested\!)
2014-06-12defaulted new parameters in modified functionstom1-1/+1
2014-06-12most functions prototyped/modified for wallet recoveryThomas Winget2-2/+2
2014-06-11Fix for orphan fix (check blocksize)mydesktop2-0/+13
2014-06-04'getinfo' daemon HTTP-RPC returns 'target_height' for progress estimationsNeozaru2-1/+14
2014-06-01Merge bitmonero@monero-projectNeozaru12-81/+186
2014-05-28typo in tx_pool.cppmonero-project1-1/+1
2014-05-27fix typing mismatchmydesktop1-2/+9
2014-05-26dynamic tx size scaling for tx mempoolmydesktop1-0/+11
2014-05-26maximum block size 130% of medianmydesktop1-3/+14
2014-05-25temporary fix for block reward dosmydesktop1-1/+23
2014-05-25enable checkpointed block verificationmydesktop1-1/+1
2014-05-25'mining_status' Daemon RPC commandNeozaru2-6/+19
2014-05-250.8.8updatemydesktop11-80/+134
2014-05-13Update tx_extra.hNoodleDoodleNoodleDoodleNoodleDoodleNoo1-1/+52
1. Fixed bug where it's impossible to spend merge-mining blocks due to missing serialization support for "tx_etra_merge_mining_tag".
2014-05-08disable checkpointing for security reasonsmonero-project1-2/+6
Further investigation of fast sync security is required
2014-05-07Update cryptonote_format_utils.cppNoodleDoodleNoodleDoodleNoodleDoodleNoo1-2/+2
Fixed problem with integer saturation when summing summary_amounts and out_amounts in a 32-bit platform.
2014-05-07added checkpoint @ 29556monero-project1-0/+1
2014-05-03fix genesis block hash, checkpoint, days behindmydesktop2-3/+3
2014-05-03initial [broken] updatemydesktop7-73/+245
2014-04-30mac osx building fixesmydesktop2-4/+9
2014-04-30various fixes to allow mac osx compilationmydesktop1-1/+1
2014-04-25Changed block minor versionHenry Hartshorne1-2/+2
2014-04-20mining bug fixedthankful_for_today2-47/+14
2014-04-18checkpoints removedthankful_for_today1-11/+0
2014-04-18Bitmonero releasethankful_for_today2-4/+3
2014-04-09Port mapping with UPnPAntonio Juarez1-1/+2
2014-04-07Improvements in JSON RPCAntonio Juarez3-18/+8
2014-04-02json rpc for wallet and bugfixAntonio Juarez8-168/+200
2014-03-20some fixesAntonio Juarez6-35/+36
2014-03-03moved all stuff to githubAntonio Juarez27-0/+5782