Thomas Winget
7568f89c55
Fixed segfault with checkpoints loading
...
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-30 16:21:37 -04:00
Thomas Winget
b261d9207b
DNS checkpoint updating added, and daemon flag to enforce them
...
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-30 16:21:37 -04:00
Thomas Winget
30caebfce3
reload checkpoints file every ~hr and print if any fail
...
also some other minor bug squashing and code formatting
2014-09-30 16:21:37 -04:00
Thomas Winget
6f2c2e1c27
Adding an identical existing checkpoint should not error
...
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-30 16:17:26 -04:00
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
Riccardo Spagni
4e2b2b942d
low risk, potentially varint overflow bug patched thanks to BBR
2014-09-24 22:17:33 -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
Zachary Michaels
45bc24d69b
Another preprocessor fix (difficulty.cpp)
2014-09-15 22:33:10 +02:00
Zachary Michaels
d03308734b
Separate testnet address prefix
2014-09-15 15:54:59 +02:00
Zachary Michaels
018e251cc0
Separate testnet default data dir
2014-09-15 15:54:19 +02:00
Zachary Michaels
96eed84aad
Pass tx and nonce to genesis block constructor
2014-09-15 15:53:50 +02:00
Zachary Michaels
fb4146fa34
Reorganize 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
iamsmooth
bb2b606e91
fix incorrect error message (obvious cut and paste bug from upstream)
2014-09-13 08:04:05 +00:00
iamsmooth
08205f01d9
output rng fix from boolberry
2014-09-12 22:57:32 +00: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
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
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
Thomas Winget
bdac624899
restored wallets will have timestamp set to June 8 2014.
2014-08-03 09:49:31 -04: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
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
fluffypony
6fc995fe5d
License updated to BSD 3-clause
2014-07-23 15:03:52 +02: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
a633c11cbb
Remove unused function
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