Skip to content
Permalink
Branch: master
Commits on Apr 11, 2017
  1. Progress #2: Define types

    nathanhourt committed Apr 11, 2017
    Add structs and types to facilitate the explicitly declared authority
    level described in issue #2.
    
    May or may not be revisiting this to tweak it later... :P
Commits on Apr 6, 2017
  1. Trim histories

    nathanhourt committed Apr 6, 2017
    Previously, the fork_database and chainbase undo histories were never
    getting trimmed, so they'd grow forever. Fixed.
    
    Also some improvements around how to use chainbase, particularly,
    setting the revision after a reindex, and also acquiring locks
    appropriately. Note that there's a lot of lock acquiring that still
    needs to be added; I didn't realize I needed to do this before :]
  2. Progress #4: Only write irreversible blocks

    nathanhourt committed Apr 6, 2017
    As of this commit, we only write irreversible blocks to disk, and when
    we reopen the database, we rewind the state until the head block is the
    last irreversible block.
    
    The unit tests are doing their jobs: several of them broke due to this
    change, because the tests which checked that the head block number
    didn't change during a restart of the database were invalidated by this
    change: the head block number *should* now change in a restart; it
    should revert to the last_irreversible_block_num. The tests are updated
    to account for this, and all pass again.
  3. Progress #4: Groundwork for part 2

    nathanhourt committed Apr 6, 2017
    Preparing for only writing irreversible blocks to disk; first I needed to
    update the various block fetching methods on database to account for
    this. This commit contains those updates, as well as a shiny new unit
    test to make sure those methods are still working correctly.
  4. Progress #4: calculate LIB

    nathanhourt committed Apr 6, 2017
    The LIB was already being calculated and stored in the
    dynamic_global_property_object, but now I know it was! :D
    
    Also remove a redundant block from node.cpp (the removed block was
    functionally equivalent to the FC_LOG macro following it)
  5. Resolve #1: Replace operations with messages

    nathanhourt committed Apr 6, 2017
    I've already removed operations from the system; in this commit I add a
    new message type and integrate it into the transaction type.
  6. Remove operations and evaluators

    nathanhourt committed Apr 6, 2017
    Also remove transaction_evaluation_state and the size_checker program.
  7. Kill some warnings

    nathanhourt committed Apr 6, 2017
  8. Remove operation_history_object

    nathanhourt committed Apr 6, 2017
    Don't need it anymore!
  9. Unify db_*.cpp files

    nathanhourt committed Apr 6, 2017
    All the db_*.cpp sources are now merged together in database.cpp again.
  10. Resolve #3: No maintenance

    nathanhourt committed Apr 6, 2017
    Everything related to the maintenance interval is now gone, including
    (and especially, really) the skipped blocks during the maintenance
    period.
  11. Bump chainbase submodule...

    nathanhourt committed Apr 6, 2017
    ...even though there's a waiting pull request. By bumping it, I make it
    break when people try to sync it, so at least it's obvious that it's not
    working right now.
    
    Once bytemaster/chainbase#3 is merged, I can
    bump it again to fix it.
  12. More work on testing

    nathanhourt committed Apr 6, 2017
    - Cleaned out some cruft
    - Added some new macros to remove boilerplate
    - Added some more test cases
Commits on Apr 5, 2017
  1. More test framework, test cases

    nathanhourt committed Apr 5, 2017
    Add a testing_network class to emulate a P2P network ferrying blocks
    between databases.
    
    Add some test cases exercising databases syncing with the
    testing_network and resolving forks.
  2. Add missed_blocks test case

    nathanhourt committed Apr 5, 2017
    This test case checks some invariants around the missing of blocks.
  3. Initial commit

    nathanhourt committed Apr 5, 2017
Newer
You can’t perform that action at this time.