aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2014-10-02Merge pull request #165Riccardo Spagni13-88/+407
c0bdd51 Daemon should now exit on conflicting checkpoints (Thomas Winget) f0b4138 various changes to runtime checkpoint updating (Thomas Winget) 7568f89 Fixed segfault with checkpoints loading (Thomas Winget) b261d92 DNS checkpoint updating added, and daemon flag to enforce them (Thomas Winget) 30caebf reload checkpoints file every ~hr and print if any fail (Thomas Winget) 0e14491 updated DNSResolver/things that use it for DNSSEC (Thomas Winget) 6f2c2e1 Adding an identical existing checkpoint should not error (Thomas Winget)
2014-10-01simplewallet ignoring testnet port in RPC modeRiccardo Spagni1-1/+1
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 Winget3-2/+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 Winget7-16/+106
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 Winget10-73/+173
also some other minor bug squashing and code formatting
2014-09-30updated DNSResolver/things that use it for DNSSECThomas Winget3-10/+23
Note: DNSResolver does not yet *use* DNSSEC, but rather this commit is preparation for including DNSSEC validation. The function in src/wallet/wallet2.cpp that uses DNSResolver still needs its parameters updated accordingly.
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 Spagni8-54/+14
This reverts commit 4e2b2b942daa4206ec44c66e59863670dfe3fde4.
2014-09-24Remove LDNS dep and fix a bug in libunbound const correctness fixThomas Winget2-4/+4
2014-09-24Removed ldns dependencyThomas Winget2-4/+9
ldns dependency was only still around for constants defined in ldns/rr.h, but those constants are RFC specified DNS constants, and to reduce deps have been replicated in dns_utils.h instead of including ldns/rr.h.
2014-09-24low risk, potentially varint overflow bug patched thanks to BBRRiccardo Spagni8-14/+54
2014-09-24libunbound has const correctness issues...Thomas Winget1-5/+19
2014-09-25Added ability to read chechpoint hashes from json file in data folderTomer Konforty4-0/+65
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-24redo FindUnbound.cmakeRiccardo Spagni1-4/+4
2014-09-24use boost::asio::ip::address because cross-platform plzRiccardo Spagni1-96/+27
2014-09-24temp commitThomas Winget1-15/+42
2014-09-23Added function to check syntax of URL for DNS lookupThomas Winget2-8/+44
For now, simply checks for '.' character, but that will be easy to change in the future if necessary/desired.
2014-09-23Fixed artifacts from cherry-picking devel->masterThomas Winget1-2/+2
2014-09-23change to allow (at least a bit) for multiple TXT recordsThomas Winget5-23/+40
2014-09-23Simplewallet should now resolve urls to addressesThomas Winget1-2/+53
Simplewallet should now do a DNS query on an address if it fails to convert the given string to a binary representation of an address (base58->binary). It will prompt the user, telling of what the "url" passed was, what monero address it translated to, and whether or not DNSSEC validation was a success, and ask for a confirmation that these are all acceptable.
2014-09-23Monero addres from DNS TXT record implemented, tests passThomas Winget4-24/+102
Still need to deal with DNSSEC and optional fields in the TXT record.
2014-09-23seed node DNS code updated to use DNSResolverThomas Winget1-41/+111
Also implemented rudimentary IPv6 support, but commented it out because it's not widely supported by ISPs for now, and thus is not currently supported by Monero.
2014-09-23Use the loop iterator, previous version of me.Thomas Winget1-2/+2
2014-09-23ipv4 and ipv6 resolution workingThomas Winget4-32/+159
IPv4 and IPv6 name resolution working. Unit tests written (and passing). net_node.{h,inl} code modified to use DNS seeds.
2014-09-23Updated CMake files -- added libunbound linker flagThomas Winget1-4/+4
CMake config file written, but was unable to test/get it working properly because of a bug in CMake with functions related to find_package. Simple "-lunbound" flag used in its stead for now. May not build on non-Linux systems, not sure yet.
2014-09-23Initial commit of DNS codeThomas Winget2-0/+141
2014-09-15Give up on brace initializers in initializer lists (MSVC bug)Zachary Michaels3-11/+11
2014-09-15another fix for CMake empty varsRiccardo Spagni1-3/+5
2014-09-15Prevent CMake choking on empty varsRiccardo Spagni1-0/+2
2014-09-15More robust versioning in CMake, plus commentsRiccardo Spagni1-13/+62
2014-09-15Fix time_t serialization issueZachary Michaels3-5/+9
On 32-bit MinGW-w64, time_t is int32_t. The existing code was serializing time_t directly and implicitly assuming that time_t is int64_t. This commit formalizes that assumption by serializing int64_t directly and casting to time_t where appropriate. Thanks go to greatwolf for reporting this issue. monero-project/bitmonero#88
2014-09-15Force CMake to link the runtime staticallyZachary Michaels1-0/+4
2014-09-15Another preprocessor fix (difficulty.cpp)Zachary Michaels1-1/+1
2014-09-15More preprocessor fixes for slow-hashZachary Michaels1-3/+3
2014-09-15Correct includes for mingw in slow-hashZachary Michaels1-0/+8
This needs testing
2014-09-15Change Windows include to windowsZachary Michaels1-1/+1
mingw is case sensitive
2014-09-15fix CMake for multiplatform versioningRiccardo Spagni1-1/+6
2014-09-15fixed incorrect version referenceRiccardo Spagni1-1/+1
2014-09-15Change testnet prefixZachary Michaels1-2/+2
2014-09-15Make P2P use the testnet data dirZachary Michaels1-1/+3
2014-09-15Replace macro with equivalent function callZachary Michaels1-49/+45
Also removed useless bool return
2014-09-15Separate testnet address prefixZachary Michaels17-54/+111
2014-09-15Add testnet seed nodesZachary Michaels1-3/+8
2014-09-15Create testnet data dir if necessaryZachary Michaels1-0/+1
2014-09-15Separate testnet default data dirZachary Michaels5-31/+44
2014-09-15Add descriptions for RPC command line paramsZachary Michaels1-3/+9
2014-09-15Add testnet genesis tx as output by CN referenceZachary Michaels1-1/+1
2014-09-15Pass tx and nonce to genesis block constructorZachary Michaels4-27/+42
2014-09-15Separate network id for testnetZachary Michaels2-3/+15
2014-09-15Separate rpc port for testnetZachary Michaels5-12/+44
2014-09-15Separate p2p port for testnetZachary Michaels2-5/+23
2014-09-15Reorganize testnet constantsZachary Michaels10-71/+46
2014-09-15Add testnet constantsZachary Michaels1-0/+16
2014-09-15Add testnet flagZachary Michaels13-50/+135
Source: cryptonotefoundation
2014-09-15fix logic in tag check, AND -> ORRiccardo Spagni1-1/+1
Signed-off-by: Riccardo Spagni <ric@spagni.net>
2014-09-15ignore tag check if we haven't pulled tagsRiccardo Spagni1-1/+1
Signed-off-by: Riccardo Spagni <ric@spagni.net>
2014-09-15new Makefile target: release-staticRiccardo Spagni1-1/+1
2014-09-13Merge pull request #136Riccardo Spagni3-48/+51
bb2b606 fix incorrect error message (obvious cut and paste bug from upstream) (iamsmooth) 6b77e83 Change wallet to not try to extract tx public key when tx has no outputs (fixes 202612 tx format messages and is otherwise correct) (iamsmooth) 08205f0 output rng fix from boolberry (iamsmooth)
2014-09-13fix incorrect error message (obvious cut and paste bug from upstream)iamsmooth1-1/+1
2014-09-13Change wallet to not try to extract tx public key when tx has no outputs ↵iamsmooth1-45/+49
(fixes 202612 tx format messages and is otherwise correct)
2014-09-12output rng fix from boolberryiamsmooth1-2/+1
2014-09-12fixed cmake variable matchingRiccardo Spagni1-1/+1
2014-09-12versioning now includes the commit hash, or -final for tagged releasesRiccardo Spagni6-18/+31
2014-09-11HOW DO I ENGLISH?jebes1-1/+1
2014-09-11mispelled brief, corrected itjebes2-14/+14
2014-09-11Merge remote-tracking branch 'upstream/master'jebes11-122/+204
2014-09-11HOW DO I GIT?jebes1-1/+1
2014-09-11Documented varintjebes4-40/+80
2014-09-11added license to CMakefluffypony1-0/+30
2014-09-10more dynamic miniupnp fixesfluffypony1-2/+9
2014-09-10miniupnpc includes fixedfluffypony1-2/+2
2014-09-10miniupnpc changes for freebsdfluffypony1-2/+2
2014-09-10mmap on FreeBSD doesn't have MAP_HUGETLBfluffypony1-1/+1
2014-09-10Include sys/time.h on BSDfluffypony1-0/+2
2014-09-10replace ftime with gettimeofday on FreeBSD because lcompat is stupidfluffypony2-4/+32
2014-09-10make FreeBSD use -lcompat till we can fix ftime()fluffypony1-4/+4
2014-09-09commented util.hjebes4-44/+86
2014-09-09more FreeBSD fixesfluffypony1-2/+7
2014-09-09malloc.h reference fixed for FreeBSDfluffypony1-2/+2
2014-09-09FreeBSD alloca.h reference fixedfluffypony2-2/+12
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 1fluffypony6-98/+98
2014-09-07build number increase after releasefluffypony1-1/+1
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-06Fix tree-hash cnt n^2. Asserts, comment. Squash2rfree2monero1-6/+48
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-09-02fixed OS X malloc.h referencefluffypony1-1/+4
2014-08-25bumped build numberfluffypony1-1/+1
2014-08-23quick additional patchfluffypony1-2/+1
2014-08-23quick fee ramp to prevent spam attackfluffypony1-3/+4
2014-08-05added view_key to wallet RPC command query_keyJakob Lind1-0/+4
2014-08-05added viewkey command to CLIJakob Lind2-0/+9
2014-08-05query_key command in wallet rpc.Jakob Lind3-0/+44
only support mnemonic as key_type currently
2014-08-03refactoring. get seed code in wallet2Jakob Lind3-12/+23
2014-08-03check its deterministic wallet before printing seedJakob Lind1-3/+19
when running the seed command
2014-08-03remove help text about seed only displayed onceJakob Lind1-2/+2
2014-08-03added seed command to get deterministic seed.Jakob Lind2-0/+12
not yet password protected
2014-08-03restored wallets will have timestamp set to June 8 2014.Thomas Winget1-1/+17
2014-08-02build number increased in stagingfluffypony1-1/+1
2014-08-02Merge pull request #73 from jakoblind/refresh_heightRiccardo Spagni9-26/+41
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 make it compile and work properlyJakob Lind1-4/+2
2014-08-01#36 simplewallet refresh include optional height paramJakob Lind9-22/+39
height param is used optionally in refresh command TODO: This should also be the default behaviour when generating a new wallet.
2014-07-23Merge pull request #70 from fluffypony/masterRiccardo Spagni115-340/+3335
New readme, license changes
2014-07-23wallet rpc: actually populate the extra while assembling a transactionErik Kimmo2-2/+2
2014-07-23License updated to BSD 3-clausefluffypony115-340/+3335
2014-07-23Changed time_t to uint64_t for serializationThomas Winget1-3/+3
time_t is implementation-, architecture-, and apparently compiler-dependent. As an example, on my machine if I build a 64-bit binary, sizeof(time_t) is 8, but for a 32-bit binary it's 4. uint64_t is therefore much more consistent for serialization, given that RPC calls are potentially made between different machines.
2014-07-22Missed serializing a get_connections RPC response parameterThomas Winget1-0/+1
2014-07-22Add get_info command to daemon json rpcZachary Michaels2-0/+26
2014-07-22Add get_bulk_payments rpc callZachary Michaels5-5/+81
2014-07-18Added get_connections RPC call to daemonThomas Winget6-0/+116
2014-07-17Merge pull request #63 from mikezackles/bytecoin_for_mergemikezackles15-60/+52
Misc fixes from bytecoin
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-01Fix thread count argument handling in simplewalletZachary Michaels1-2/+2
2014-07-01Match empty RPC request with other requestsZachary Michaels1-1/+5
2014-07-01Switch list to vector for RPC serializationZachary Michaels1-2/+2
2014-07-01Remove unused functionZachary Michaels2-19/+0
2014-07-01Fix assert bug in base58 encodeZachary Michaels1-1/+1
The previous implementation was almost certainly a typo. full_block_size is the maximum index in the encoded_block_sizes array, and size is used as an index in this array. So now 1 <= size <= full_block_size == 8 instead of 1 <= size <= sizeof(full_block_size) == size_of(size_t) == ? (maybe 4 on 32-bit systems!)
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-07-01Improved (fixed?) serialization for vec<uint32_t>Zachary Michaels1-0/+7
2014-07-01Add missing pragmaZachary Michaels1-0/+2
2014-07-01Add missing pragmaZachary Michaels1-0/+2
2014-07-01Add missing pragmaZachary Michaels1-0/+2
2014-07-01Allow priority peers when there are exclusive peersZachary Michaels1-1/+1
Per my reading this change makes sense since a subset of the exclusive peers could be priority peers. Priority peers that are not exclusive will not get loaded, and priority peers that *are* exclusive will get special treatment. Prior to this change it looks like priority peers were silently ignored when exclusive peers were provided.
2014-07-01Explicit error constructorsZachary Michaels1-5/+5
2014-07-01Remove unused array in cn_slow_hashZachary Michaels1-1/+0
2014-06-30wallet RPC converted to use new transaction semanticsThomas Winget7-184/+305
wallet RPC now uses wallet2::create_transactions and wallet2::commit_tx instead of wallet2::transfer. This made it possible to add the RPC call /transfer_split, which will split transactions automatically if they are too large. The old call to /transfer will return an error stating to use /transfer_split if multiple transactions are needed to fulfill the request.
2014-06-30removed erroneous printing of newlinesThomas Winget1-1/+0
2014-06-30missed removing a debug printThomas Winget1-2/+0
2014-06-30removed some debugging code (really stupid printf-style debuggng..Thomas Winget1-11/+2
2014-06-30Transaction splitting *seems* to be working!!!tom2-6/+24
2014-06-30Added confirmation prompt if transactions are to be splitThomas Winget1-0/+16
2014-06-30added back successful tx message. oops.Thomas Winget1-1/+3
2014-06-30up tx splits limit 5 -> 30Thomas Winget1-1/+1
2014-06-30final changes to get transaction splitting building. needs testing.Thomas Winget5-42/+136
2014-06-30working on dividing functions in prep for tx splittingtom2-9/+84
2014-06-30Added comments to wallet functionsThomas Winget2-0/+13
2014-06-30Revert "Do not fall over when refreshing balance fails"Thomas Winget1-2/+1
2014-06-29Do not fall over when refreshing balance failsMatthew Little1-1/+2
2014-06-26set max block size for gbtmydesktop2-0/+9
2014-06-24fix function typomonero-project1-1/+1
2014-06-24Fix copy/paste bug, thx Boolberrymonero-project1-3/+3
2014-06-19Update slow-hash.cNoodleDoodleNoodleDoodleNoodleDoodleNoo1-0/+5
1. Fix for Mac OSX compilation errors.
2014-06-16Update slow-hash.cNoodleDoodleNoodleDoodleNoodleDoodleNoo1-1/+8
1. Added multiplication support in 32-bit mode
2014-06-16Update miner.cppNoodleDoodleNoodleDoodleNoodleDoodleNoo1-1/+4
1. Added support for scratchpad memory allocation.
2014-06-16Update slow-hash.cNoodleDoodleNoodleDoodleNoodleDoodleNoo1-110/+288
1. Added huge pages support and optimized scratchpad twiddling. (credits to dga). 2. Added aes-ni key expansion support. 3. Minor speedup to scratchpad initialization/finalization.
2014-06-15Merge pull request #33 from mikezackles/arch_linux_build_fixesmonero-project1-4/+4
Arch Linux build fixes
2014-06-15proper tx_pool handling from CryptoZoidberg / BBRfluffypony4-1/+36
2014-06-14added checkpoint @ 80000monero-project1-0/+1
2014-06-12changed wallet mnemonic to use cout so it doesn't print to logThomas Winget1-1/+2
2014-06-12change hash for keygen from blake to keccaktom1-2/+2
2014-06-12changed text a bit moretom1-10/+11
2014-06-12changed some print messagestom1-2/+2
2014-06-12allow two-random-numbers wallet generation (but not as default)Thomas Winget6-42/+52
2014-06-12reworked command line args for simplewallet.Thomas Winget2-19/+30
--generate-new-wallet and --wallet-file are now properly mutually-exclusive.
2014-06-12DRY cin input_line (and test replacement of non-DRY usage)Thomas Winget3-6/+19
2014-06-12stupid signed arithmetic.Thomas Winget1-6/+3
2014-06-12more pointer-based derpThomas Winget3-8/+23
2014-06-12fixed some pointer- and loop-based derpsThomas Winget3-1/+6
2014-06-12builds, but doesn't link. other than that, electrum-style recovery ↵Thomas Winget9-19/+56
implemented (but not tested\!)
2014-06-12missing '.at' on two map calls. built on some machines, very strange...Thomas Winget1-2/+2
2014-06-12revert 'dirty hack' change to crypto.h. need a better way for sure.Thomas Winget1-4/+1
2014-06-12compile issues, resolve later. commiting because switching machinestom3-2/+83
2014-06-12defaulted new parameters in modified functionstom2-2/+2
2014-06-12most functions prototyped/modified for wallet recoveryThomas Winget10-9/+3371
2014-06-11new error code for rpcmydesktop1-2/+1
2014-06-11Fix for orphan fix (check blocksize)mydesktop3-0/+22
2014-06-11Link to pthreads on non-apple unixZachary Michaels1-4/+4
2014-06-11Correcting high orphan rate of blocks at poolmonero-project1-3/+12
2014-06-10added new seed nodesfluffypony1-0/+9
2014-06-05Merge pull request #24 from Neozaru/mastermonero-project5-1/+22
'getinfo' daemon HTTP-RPC returns 'target_height' for progress estimation
2014-06-04Added static_cast to hshd.current_heightNeozaru1-1/+1
2014-06-04'getinfo' daemon HTTP-RPC returns 'target_height' for progress estimationsNeozaru5-1/+22
2014-06-02fixed conflictpaybee11-43/+177