1. 05 5月, 2017 3 次提交
    • N
      Unify types:: and chain:: types · b5b3dbb8
      Nathan Hourt 提交于
      We have a number of types defined in eos::chain like transaction,
      message, etc. which parallel autogenerated types in eos::types. They are
      identical in storage, but the chain types have various helper methods
      which the autogenerated types, of course, lack.
      
      I've unified these by letting the generated classes in types:: store the
      data, and having the chain:: types inherit these data stores and add
      functionality to them via methods.
      b5b3dbb8
    • N
      Ref #17: Define types, logic, tests · 0204bcdc
      Nathan Hourt 提交于
      This commit adds the BlockchainConfiguration type, which contains the
      values to be voted on by producers. It also adds the algorithm to create
      a BlockchainConfiguration containing the median values from a vector of
      BlockchainConfigurations. Finally, it adds a testcase which verifies that
      the median calculation is performed correctly.
      0204bcdc
    • N
      Tweaks to type system · 296ef5d1
      Nathan Hourt 提交于
      - Add missing ShareType to known (built-in) types in SimpleSymbolTable
      - Define a constructor on generated classes to initialize all the fields
      at construction
      
      More coming soon; stay tuned!
      296ef5d1
  2. 04 5月, 2017 7 次提交
  3. 03 5月, 2017 2 次提交
  4. 02 5月, 2017 4 次提交
    • N
      Cleanup/fixes · 5599ace3
      Nathan Hourt 提交于
      Break up files, fix a typo here and there... no interesting behavior
      changes.
      5599ace3
    • N
      Fix build · 36ae434b
      Nathan Hourt 提交于
      Still getting build errors from fc due to invalid partial template
      specializations. Fix by hoisting the compiler flag to fix this from fc up
      to eos as a whole.
      36ae434b
    • N
      Change one comment · aa483a4a
      Nathan Hourt 提交于
      aa483a4a
    • D
      Initial Support for Wren Scripts · fab7bd53
      Daniel Larimer 提交于
      - it is now possible to set an Apply Handler that can store/fetch data
      - TBD - actually reading the message being passed in and generating
      messages
      fab7bd53
  5. 01 5月, 2017 1 次提交
  6. 29 4月, 2017 1 次提交
  7. 28 4月, 2017 8 次提交
  8. 27 4月, 2017 8 次提交
    • N
      Move chain/protocol/* to chain/ · 5d8fab9a
      Nathan Hourt 提交于
      The protocol folder heralds back to BTS, when we drew a distinction
      between "protocol objects" and "implementation objects." This
      distinction was never really realized, and definitely isn't being
      maintained now, so do away with the vestiges. It's nothing but a
      potential point of confusion now.
      5d8fab9a
    • N
      Fix some docs, tweak some names · 604f60b2
      Nathan Hourt 提交于
      604f60b2
    • N
      Replace some FC_ASSERTs with EOS_ASSERTs · 6e73146b
      Nathan Hourt 提交于
      Throw more accurate exception types during trx validation rather than
      merely assert_exception's. Also, add a message to the exception
      explaining what went wrong.
      6e73146b
    • N
      Refactor trx expiration check into its own function · 59577f73
      Nathan Hourt 提交于
      Previously it was just being done in validate_tapos, which was a legacy
      quirk as bts would validate expiration and tapos together. At least now,
      there's no overlap between these checks, so they can be split into
      separate functions.
      59577f73
    • N
      Ref #14: Add read_write chain API · e15b6359
      Nathan Hourt 提交于
      Create a new read-write chain API with push_block and push_transaction
      calls
      e15b6359
    • D
      progress · cbc7793a
      Daniel Larimer 提交于
      cbc7793a
    • N
      Move system contract impl to plugin · 20d9c9b8
      Nathan Hourt 提交于
      The system contract C++ implementation is now in a plugin rather than
      directly on database.
      
      Note that testing_database installs this implementation on the testing
      database, even though the test framework does not use appbase or appbase
      plugins.
      20d9c9b8
    • N
      Add a template for plugins · 0175c308
      Nathan Hourt 提交于
      This is just an empty template plugin which will serve as a starting
      point for new plugins.
      
      Also add a helper script, make_new_plugin.sh, which copies the template
      plugin to create your new plugin and automatically renames all of the
      files/directories/classes/binaries/whatever. Invoke like so:
      ./make_new_plugin.sh new_plugin
      Afterwards, the new_plugin folder will be ready to go.
      0175c308
  9. 26 4月, 2017 6 次提交
    • N
      Spelling fix · cf903679
      Nathan Hourt 提交于
      cf903679
    • N
      Ref #14: Kill some boilerplate · 108a8b51
      Nathan Hourt 提交于
      108a8b51
    • N
      Resolve #13: Fix simulated network propagation · 288f489e
      Nathan Hourt 提交于
      The simulated network was recursively calling push_block when
      propagating blocks, which caused a lock timeout. Fix this issue by not
      pushing a new block to the database that created it.
      
      Also, replace the currently_propagating_block flag with boost's slot
      blocker.
      288f489e
    • N
      Clarify names · 169c6a1e
      Nathan Hourt 提交于
      Rename: check_tapos -> should_check_tapos
      Rename: check_for_duplicate_transactions ->
      should_check_for_duplicate_transactions
      
      Since these methods return whether the named action should be taken or
      not, rather than taking the named action, prefix their names with should_
      so it's clear they're querying and not acting.
      169c6a1e
    • N
      Progress #14: Add get_block call · 5e61e56d
      Nathan Hourt 提交于
      Add get_block call to chain read_only api
      5e61e56d
    • N
      Progress #14: Restructure API · ead686b6
      Nathan Hourt 提交于
      The beginnings of the chain API is now much closer to the design
      described in #14
      ead686b6