| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
Match changed BlockchainDB function declaration.
|
| |\
| |
| |
| | |
5ab33ca unit_tests: update test openalias address (moneromooo-monero)
|
| | |
| |
| |
| | |
It was recently changed
|
| |/
|
|
|
| |
This avoids the need to define that variable in every program
which uses epee.
|
| | |
|
| | |
|
| |\
| |
| |
| |
| |
| |
| | |
7658ac0 blockchain: revert handle_get_objects adding block id on tx not found (moneromooo-monero)
3a0f4d8 berkeleydb: fix delete/free mismatch (moneromooo-monero)
1642be2 minor bugfixes and refactoring (Thomas Winget)
098dcf2 unit_tests: fix mnemonics unit test testing invalid seeds (moneromooo-monero)
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Some word triplets, such as "mugged names nail", are not valid
results from any 32 bit value. If used to decode a 32 bit value,
the result will therefore encode to a different word triplet.
Fix this by using random words converted from an actual random
bitstring, ensuring we always get valid triplets.
|
| |/ |
|
| | |
|
| |
|
|
| |
Needed to add the corresponding (dummy) method to unit test hardfork
|
| |
|
|
| |
open isn't actually called in those tests
|
| | |
|
| | |
|
| |
|
|
|
| |
The dummy blockchain class needed to have the newly added
is_read_only virtual function.
|
| | |
|
| |
|
|
|
| |
A couple stopped passing when the hard fork code was made
to reject incoming hard fork versions it did not know about.
|
| | |
|
| |
|
|
|
| |
This would fail, as the post hard fork settings would yield
different data, and the test expects pre hard fork data.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
Also add some more tests, and rename some instances of
"version" and "add" for clarity.
NOTE: the starting height values are sometimes wrong.
I suspect this is due to the hard fork reorg code being
buggy, since they're good when syncing after the fact.
However, they're not actually used by the consensus code,
so I'm ignoring this for now, but this needs debugging.
|
| |
|
|
| |
version 2
|
| |
|
|
|
| |
It returns the ideal version for a given height, which is
based on the minimum height for a fork, disregarding votes
|
| |
|
|
| |
And setup the first fork to not vote
|
| | |
|
| |
|
|
| |
git history's here if needed to get any of this back
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Using major version would cause older daemons to reject those
blocks as they fail to deserialize blocks with a major version
which is not 1. There is no such restriction on the minor
version, so switching allows older daemons to coexist with
newer ones till the actual fork date, when most will hopefully
have updated already.
Also, for the same reason, we consider a vote for 0 to be a
vote for 1, since older daemons set minor version to 0.
|
| | |
|
| |
|
|
|
| |
Add a block height before which version 1 is assumed
Use DB transactions
|
| |
|
|
|
|
|
|
|
| |
This allows knowing the hard fork a block must obey in order to be
added to the blockchain. The previous semantics would use that new
block's version vote to determine this hard fork, which made it
impossible to use the rules to validate transactions entering the
tx pool (and made it impossible to validate a block before adding
it to the blockchain).
|
| |
|
|
|
| |
There will be a delay on first load of an existing blockchain
as it gets reparsed for this state data.
|
| |
|
|
|
| |
This keeps track of voting via block version, in order to decide
when to enable a particular fork's code.
|
| |
|
|
|
|
|
| |
This ensures one can't instanciate a DNSResolver object by
mistake, but uses the singleton. A separate create static
function is added for cases where a new object is explicitely
needed.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Based on tewinget's update.
Make OpenAlias address format independent of existing DNS functions.
Add tests.
Test:
make debug-test
cd build/debug/tests/unit_tests
# test that regular DNS functions work, including IPv4 lookups.
# also test function that converts OpenAlias address format
make && ./unit_tests --gtest_filter=DNSResolver*
# test that OpenAlias addresses like donate@getmonero.org work from
# wallet tools
make && ./unit_tests --gtest_filter=AddressFromURL.Success
|
| |
|
|
|
| |
old unbound #warning does not block compilation
unit tests build fine. Even though the RPC/P2P network type is required again
|
| |\ |
|
| | |\ |
|
| | |\ \ |
|
| | | |\ \ |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Everything except actually *using* BlockchainBDB is wired up, but the db
itself is not yet working. Some error about user mem not large enough.
I think I know what this error means, but I can't determine the cause.
Notes: BerkeleyDB does not allow 0-indexing in its recno type databases,
so block numbers *in the database* will be 1-indexed. Modifications
to indexing have been made as needed.
|
| | |/ / /
| | | |
| | | |
| | | |
| | | |
| | | | |
Make Cmake things aware of BerkeleyDB and BlockchainBDB
Make the BlockchainDB unit tests aware of BlockchainBDB
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Some BlockchainDB unit testing fleshed out (and working), rudimentary
linker flag for lmdb in CMakeLists, but should probably be done
"correctly" at some point (find it on whatever system you're building on
and all that jazz).
update for rebase (warptangent 2015-01-04)
fix conflicts with upstream CMakeLists.txt files
tests/CMakeLists.txt (remove edits from original commit)
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
miscellaneous changes to BlockchainDB/blockchain as well, namely
replacing instances of std::list with std::vector
|