Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 1.06 KB

walytis_beta_changes.md

File metadata and controls

23 lines (19 loc) · 1.06 KB

API

class Blockchain:

  • By default, add newly received block to block_ids before or after running user's event handler?
  • parameter update_blockids_before_handling: rename to update_blocks_before_handling
  • rename get_block_ids() to block_ids
  • rename get_blocks() to blocks
  • don't provide block info after object is terminated

class Block:

  • use bytes instead of bytearray?

  • rename long_id to id

  • rename short_id to childrens_reference or similar

    • topics: elements of type bytearray|bytes instead of str
    • topics: collection of type set instead of list? sets aren't sorted...
    • topics: rename to user-metadata? What about non-user metadata ("Genesis", blockchain-ID)? Maybe separate into topics and user-metadata, which is simply a subset of the former
  • more efficient block lookup, perhaps tell walytis_beta_api to read the blocks' folder?

  • Walytis: get rid of DBMS?

  • migrate from datetime.utcnow() to datetime.now(UTC)

General

  • remove all code marked with comments of BACKWARDS COMPATIBILITY