Oran Juice
3c0e87e1b6
Supports wallet restoration
2014-09-26 23:34:35 +05:30
Oran Juice
a1ac92e185
Accepts seed language choice from user.
2014-09-25 18:04:30 +05:30
Riccardo Spagni
59a8366bb1
Revert "low risk, potentially varint overflow bug patched thanks to BBR"
...
This reverts commit 4e2b2b942d
.
2014-09-25 08:24:42 +02:00
Thomas Winget
fab95aef64
Remove LDNS dep and fix a bug in libunbound const correctness fix
2014-09-24 23:45:01 -04:00
Thomas Winget
2248124453
Removed ldns dependency
...
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-24 22:45:17 -04:00
Riccardo Spagni
4e2b2b942d
low risk, potentially varint overflow bug patched thanks to BBR
2014-09-24 22:17:33 -04:00
Thomas Winget
738357459b
libunbound has const correctness issues...
2014-09-24 20:05:34 -04:00
Tomer Konforty
06a4578bf2
Added ability to read chechpoint hashes from json file in data folder
2014-09-25 00:00:44 +02:00
iamsmooth
9956b68b18
checkpoint
2014-09-24 23:52:40 +02:00
iamsmooth
d19cf1f458
checkpoint
2014-09-24 23:52:31 +02:00
iamsmooth
c428c29051
checkpoints
2014-09-24 23:52:26 +02:00
iamsmooth
b1d586af4b
checkpoint
2014-09-24 23:52:20 +02:00
iamsmooth
400f1016dd
checkpoints
2014-09-24 23:52:13 +02:00
Riccardo Spagni
bff1f9d4c4
redo FindUnbound.cmake
2014-09-24 20:38:24 +02:00
Oran Juice
26ea53d461
Copies word lists directory to the location of the executable
2014-09-24 22:44:36 +05:30
Riccardo Spagni
d1a7f699c6
use boost::asio::ip::address because cross-platform plz
2014-09-24 14:45:54 +02:00
Thomas Winget
1e193d687d
temp commit
2014-09-24 09:13:18 +02:00
Thomas Winget
1dece111cc
Added function to check syntax of URL for DNS lookup
...
For now, simply checks for '.' character, but that will be easy to
change in the future if necessary/desired.
2014-09-23 22:59:57 +02:00
Thomas Winget
24f325a33d
Fixed artifacts from cherry-picking devel->master
2014-09-23 22:59:47 +02:00
Thomas Winget
c14c7e1683
change to allow (at least a bit) for multiple TXT records
2014-09-23 22:58:28 +02:00
Thomas Winget
f437cb58bf
Simplewallet should now resolve urls to addresses
...
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-23 22:58:25 +02:00
Thomas Winget
a5757a628f
Monero addres from DNS TXT record implemented, tests pass
...
Still need to deal with DNSSEC and optional fields in the TXT record.
2014-09-23 22:58:21 +02:00
Thomas Winget
3fb0fc020f
seed node DNS code updated to use DNSResolver
...
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-23 22:58:17 +02:00
Thomas Winget
9a3b18dbc2
Use the loop iterator, previous version of me.
2014-09-23 22:58:13 +02:00
Thomas Winget
578050e91d
ipv4 and ipv6 resolution working
...
IPv4 and IPv6 name resolution working.
Unit tests written (and passing).
net_node.{h,inl} code modified to use DNS seeds.
2014-09-23 22:58:07 +02:00
Thomas Winget
dea98df6b1
Updated CMake files -- added libunbound linker flag
...
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-23 22:58:02 +02:00
Thomas Winget
1ae6db25e6
Initial commit of DNS code
2014-09-23 22:57:57 +02:00
Oran Juice
608572eead
Check for error after opening word list file
2014-09-23 20:48:15 +05:30
Oran Juice
09170b4d3b
Added code to separate old word list to raw input file and support for multiple new languages
2014-09-23 18:34:39 +05:30
Oran Juice
6be139b511
Moved mnemonics code to src/mnemonics
2014-09-23 17:04:04 +05:30
Zachary Michaels
59ab569da1
Give up on brace initializers in initializer lists (MSVC bug)
2014-09-15 23:14:24 +02:00
Riccardo Spagni
ffe7bf8c1c
another fix for CMake empty vars
2014-09-15 23:07:47 +02:00
Riccardo Spagni
de442fb9ad
Prevent CMake choking on empty vars
2014-09-15 23:04:58 +02:00
Riccardo Spagni
070ff889d2
More robust versioning in CMake, plus comments
2014-09-15 23:01:50 +02:00
Zachary Michaels
9db881864d
Fix time_t serialization issue
...
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-15 22:38:46 +02:00
Zachary Michaels
f64a68e7cc
Force CMake to link the runtime statically
2014-09-15 22:36:02 +02:00
Zachary Michaels
45bc24d69b
Another preprocessor fix (difficulty.cpp)
2014-09-15 22:33:10 +02:00
Zachary Michaels
aba3497fdd
More preprocessor fixes for slow-hash
2014-09-15 22:33:10 +02:00
Zachary Michaels
cf91545734
Correct includes for mingw in slow-hash
...
This needs testing
2014-09-15 22:33:10 +02:00
Zachary Michaels
2b76e9d8a3
Change Windows include to windows
...
mingw is case sensitive
2014-09-15 22:33:10 +02:00
Riccardo Spagni
b92a8b53e0
fix CMake for multiplatform versioning
2014-09-15 20:15:26 +02:00
Riccardo Spagni
72a80f6213
fixed incorrect version reference
2014-09-15 15:58:22 +02:00
Zachary Michaels
95a2701ec5
Change testnet prefix
2014-09-15 15:55:07 +02:00
Zachary Michaels
120c84d04f
Make P2P use the testnet data dir
2014-09-15 15:55:07 +02:00
Zachary Michaels
23525655fa
Replace macro with equivalent function call
...
Also removed useless bool return
2014-09-15 15:55:07 +02:00
Zachary Michaels
d03308734b
Separate testnet address prefix
2014-09-15 15:54:59 +02:00
Zachary Michaels
ee1bacc64f
Add testnet seed nodes
2014-09-15 15:54:24 +02:00
Zachary Michaels
4a6eb0a016
Create testnet data dir if necessary
2014-09-15 15:54:24 +02:00
Zachary Michaels
018e251cc0
Separate testnet default data dir
2014-09-15 15:54:19 +02:00
Zachary Michaels
3ef7f33300
Add descriptions for RPC command line params
2014-09-15 15:53:50 +02:00
Zachary Michaels
1e38a02bb5
Add testnet genesis tx as output by CN reference
2014-09-15 15:53:50 +02:00
Zachary Michaels
96eed84aad
Pass tx and nonce to genesis block constructor
2014-09-15 15:53:50 +02:00
Zachary Michaels
257077a96b
Separate network id for testnet
2014-09-15 15:53:50 +02:00
Zachary Michaels
658b6690a3
Separate rpc port for testnet
2014-09-15 15:53:46 +02:00
Zachary Michaels
98ed9a41f7
Separate p2p port for testnet
2014-09-15 15:53:10 +02:00
Zachary Michaels
fb4146fa34
Reorganize testnet constants
2014-09-15 15:53:10 +02:00
Zachary Michaels
79862ad1de
Add testnet constants
2014-09-15 15:53:10 +02:00
Zachary Michaels
07470fd400
Add testnet flag
...
Source: cryptonotefoundation
2014-09-15 15:53:01 +02:00
Riccardo Spagni
51011ed960
fix logic in tag check, AND -> OR
...
Signed-off-by: Riccardo Spagni <ric@spagni.net>
2014-09-15 08:24:32 +02:00
Riccardo Spagni
3129d51eb4
ignore tag check if we haven't pulled tags
...
Signed-off-by: Riccardo Spagni <ric@spagni.net>
2014-09-15 08:22:52 +02:00
Riccardo Spagni
d97191d4f9
new Makefile target: release-static
2014-09-15 08:18:11 +02:00
Riccardo Spagni
9c56b38b16
Merge pull request #136
...
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-13 10:24:39 +02:00
iamsmooth
bb2b606e91
fix incorrect error message (obvious cut and paste bug from upstream)
2014-09-13 08:04:05 +00:00
iamsmooth
6b77e8358c
Change wallet to not try to extract tx public key when tx has no outputs (fixes 202612 tx format messages and is otherwise correct)
2014-09-13 04:25:33 +00:00
iamsmooth
08205f01d9
output rng fix from boolberry
2014-09-12 22:57:32 +00:00
Riccardo Spagni
570b90eb43
fixed cmake variable matching
2014-09-12 13:27:30 +02:00
Riccardo Spagni
8334ce0b24
versioning now includes the commit hash, or -final for tagged releases
2014-09-12 13:12:43 +02:00
jebes
a13e879251
HOW DO I ENGLISH?
2014-09-11 10:45:05 -04:00
jebes
f7900ccfc1
mispelled brief, corrected it
2014-09-11 10:36:39 -04:00
jebes
dfed3d39b6
Merge remote-tracking branch 'upstream/master'
2014-09-11 10:20:55 -04:00
jebes
9d6f9335d1
HOW DO I GIT?
2014-09-11 10:20:17 -04:00
jebes
a70bf86037
Documented varint
2014-09-11 10:14:05 -04:00
fluffypony
d21cf293e1
added license to CMake
2014-09-11 08:25:07 +02:00
fluffypony
8d8b47e69f
more dynamic miniupnp fixes
2014-09-10 20:01:30 +02:00
fluffypony
59c0423eae
miniupnpc includes fixed
2014-09-10 18:22:20 +02:00
fluffypony
81490d2aea
miniupnpc changes for freebsd
2014-09-10 14:19:42 +02:00
fluffypony
ccb2ab2b7b
mmap on FreeBSD doesn't have MAP_HUGETLB
2014-09-10 14:01:39 +02:00
fluffypony
110f110181
Include sys/time.h on BSD
2014-09-10 13:58:43 +02:00
fluffypony
a8d043b6dd
replace ftime with gettimeofday on FreeBSD because lcompat is stupid
2014-09-10 13:55:39 +02:00
fluffypony
0e343ecfdf
make FreeBSD use -lcompat till we can fix ftime()
2014-09-10 13:25:34 +02:00
jebes
c085e9294f
commented util.h
2014-09-09 20:18:23 -04:00
fluffypony
266c639f4f
more FreeBSD fixes
2014-09-09 14:49:13 +02:00
fluffypony
e1d31e0a8b
malloc.h reference fixed for FreeBSD
2014-09-09 14:07:57 +02:00
fluffypony
6afbdd9754
FreeBSD alloca.h reference fixed
2014-09-09 12:37:19 +02:00
fluffypony
4ba680f294
a few more error messages moved to log level 1
2014-09-09 12:28:16 +02:00
fluffypony
cf5a8b1d6c
moved non-critical warnings and errors to log level 1
2014-09-09 11:32:00 +02:00
fluffypony
4290c78160
build number increase after release
2014-09-07 08:33:41 +02:00
iamsmooth
0a9f2f5236
fix checkpoints
2014-09-06 21:56:39 +02:00
iamsmooth
07680e553f
bug fix to checkpoint-on-restore; still fails on 612
2014-09-06 21:56:34 +02:00
iamsmooth
480cf9668f
checkpoints on restore; currently fails on 212 checkpoint
2014-09-06 21:56:29 +02:00
rfree2monero
2ef0aee81d
Fix tree-hash cnt n^2. Asserts, comment. Squash2
2014-09-06 21:56:24 +02:00
Thomas Winget
c05489938f
override for get_block_longhash for block 202612
2014-09-06 21:56:18 +02:00
Thomas Winget
9a16bb9936
added double-check for 202612 block id
...
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-06 21:56:12 +02:00
Thomas Winget
115f9523fa
hex_to_pod needs the destination as an arg, as opposed to it returning the pod
2014-09-06 21:56:06 +02:00
Thomas Winget
a544603a7b
Override for block hashing for block 202612
...
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-06 21:54:58 +02:00
fluffypony
f8025cada9
fixed OS X malloc.h reference
2014-09-02 12:08:27 +02:00
fluffypony
6f04cdbd07
bumped build number
2014-08-25 18:54:48 +02:00
fluffypony
1829966fea
quick additional patch
2014-08-23 22:43:13 +02:00
fluffypony
db69298b95
quick fee ramp to prevent spam attack
2014-08-23 22:21:18 +02:00
Jakob Lind
67b91ea769
added view_key to wallet RPC command query_key
2014-08-05 08:57:08 +02:00
Jakob Lind
da523f30fc
added viewkey command to CLI
2014-08-05 08:53:30 +02:00
Jakob Lind
0c3255ead8
query_key command in wallet rpc.
...
only support mnemonic as key_type currently
2014-08-05 08:17:23 +02:00
Jakob Lind
2ba77629ad
refactoring. get seed code in wallet2
2014-08-03 16:58:21 +02:00
Jakob Lind
6575d4ebe5
check its deterministic wallet before printing seed
...
when running the seed command
2014-08-03 16:05:15 +02:00
Jakob Lind
d0c8532819
remove help text about seed only displayed once
2014-08-03 16:05:15 +02:00
Jakob Lind
4fce57b9ad
added seed command to get deterministic seed.
...
not yet password protected
2014-08-03 16:05:15 +02:00
Thomas Winget
bdac624899
restored wallets will have timestamp set to June 8 2014.
2014-08-03 09:49:31 -04:00
fluffypony
9228dbf1e9
build number increased in staging
2014-08-02 17:15:46 +02:00
Riccardo Spagni
ba99a86333
Merge pull request #73 from jakoblind/refresh_height
...
Optional height parameter for wallet refresh
2014-08-02 11:13:26 +02:00
Riccardo Spagni
d1b0ee7ecd
Merge pull request #64 from mikezackles/bytecoin_tx_pool_tmp
...
tx pool fixes, courtesy of Bytecoin
2014-08-01 17:31:15 +02:00
Jakob Lind
29c675acc0
#36 make it compile and work properly
2014-08-01 11:29:55 +02:00
Jakob Lind
e4273f2415
#36 simplewallet refresh include optional height param
...
height param is used optionally in refresh command
TODO: This should also be the default behaviour
when generating a new wallet.
2014-08-01 10:17:50 +02:00
Riccardo Spagni
0a87cb0b33
Merge pull request #70 from fluffypony/master
...
New readme, license changes
2014-07-23 18:26:06 +02:00
Erik Kimmo
a59b6205cd
wallet rpc: actually populate the extra while assembling a transaction
2014-07-23 19:27:23 +04:00
fluffypony
6fc995fe5d
License updated to BSD 3-clause
2014-07-23 15:03:52 +02:00
Thomas Winget
a99143444c
Changed time_t to uint64_t for serialization
...
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-23 05:59:31 -04:00
Thomas Winget
ad4061002c
Missed serializing a get_connections RPC response parameter
2014-07-22 20:54:45 -04:00
Zachary Michaels
2796a7f015
Add get_info command to daemon json rpc
2014-07-22 14:00:10 -04:00
Zachary Michaels
12596ad566
Add get_bulk_payments rpc call
2014-07-22 12:16:15 -04:00
Thomas Winget
9f88b7ce6b
Added get_connections RPC call to daemon
2014-07-18 19:33:03 -04:00
mikezackles
905b67bc79
Merge pull request #63 from mikezackles/bytecoin_for_merge
...
Misc fixes from bytecoin
2014-07-17 19:23:49 -04:00
Zachary Michaels
61e447f7c8
Remove dead code
2014-07-17 19:18:24 -04:00
Zachary Michaels
e48cf2a3a9
Remove second tx size check
2014-07-17 18:47:18 -04:00
Zachary Michaels
23c914ccfe
Don't check max tx size when adding to block
...
This is now done when adding transactions to the pool.
2014-07-17 17:11:21 -04:00
Zachary Michaels
e3b8c58496
Don't check for min fee when adding tx to block
...
This is now done when transactions enter the pool.
2014-07-17 17:10:35 -04:00
Zachary Michaels
232e23e90f
Decrease max block size from 200% median to 130%
2014-07-17 16:56:31 -04:00
Zachary Michaels
c017bb0656
Use print_money in log
2014-07-17 16:56:28 -04:00
Zachary Michaels
d9f3421ce7
Minimum tx fee for entering pool
2014-07-17 16:55:40 -04:00
Zachary Michaels
8e99cee062
Start fresh if tx_pool deserialize fails
2014-07-17 16:53:48 -04:00
Zachary Michaels
a3f5764869
Add transaction size limit
...
Transactions larger than the limit will not enter the pool
2014-07-17 16:53:48 -04:00
Zachary Michaels
4d25350a82
Use const where appropriate in tx_pool
2014-07-17 16:31:31 -04:00
Zachary Michaels
9872d205ff
Make some tx_pool methods static
2014-07-17 14:02:17 -04:00
Zachary Michaels
85a04cb168
Make some tx_pool methods private
2014-07-17 11:25:41 -04:00
Zachary Michaels
a016499a0e
Fix thread count argument handling in simplewallet
2014-07-01 14:57:27 -04:00
Zachary Michaels
dee9abcd60
Match empty RPC request with other requests
2014-07-01 14:57:27 -04:00
Zachary Michaels
efad8c9f31
Switch list to vector for RPC serialization
2014-07-01 14:57:27 -04:00
Zachary Michaels
a633c11cbb
Remove unused function
2014-07-01 14:57:27 -04:00
Zachary Michaels
7259f07a20
Fix assert bug in base58 encode
...
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-01 14:57:27 -04:00
Zachary Michaels
26c83c5dea
Explicit namespaces
2014-07-01 14:57:27 -04:00
Zachary Michaels
28af03208b
Remove redeclaration
2014-07-01 14:57:26 -04:00
Zachary Michaels
b1413fd045
C++ style cast
2014-07-01 14:57:26 -04:00
Zachary Michaels
b3092d4e00
Comment unused functions in cryptonote_core
2014-07-01 14:57:26 -04:00
Zachary Michaels
e344b9c734
Improved (fixed?) serialization for vec<uint32_t>
2014-07-01 14:57:26 -04:00
Zachary Michaels
f98c8abf42
Add missing pragma
2014-07-01 14:57:26 -04:00
Zachary Michaels
5fca5a0e5d
Add missing pragma
2014-07-01 14:57:26 -04:00
Zachary Michaels
aaced6ff9b
Add missing pragma
2014-07-01 14:57:26 -04:00
Zachary Michaels
17f0967472
Allow priority peers when there are exclusive peers
...
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-01 14:57:26 -04:00
Zachary Michaels
bd7d20a58a
Explicit error constructors
2014-07-01 14:57:25 -04:00
Zachary Michaels
849c52c7ed
Remove unused array in cn_slow_hash
2014-07-01 14:57:25 -04:00
Thomas Winget
d433a696e5
wallet RPC converted to use new transaction semantics
...
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-30 07:16:50 -04:00