Skip to content
Permalink
Branch: nfg2
Commits on Nov 8, 2019
  1. Further work on Finality Gadget

    SkidanovAlex committed Nov 8, 2019
    1. Added a test that ensures safety
    2. Added a missing check that makes sure we do not create an approval if the prev_block has lower weight or score than the last block we approved
  2. Safety test

    SkidanovAlex committed Nov 7, 2019
  3. Finality gadget implementation

    SkidanovAlex committed Nov 3, 2019
    - `compute_quorums` computes the last block with a quorum pre-vote and the last block with quorum pre-commit from a particular block;
    - `get_my_approval_reference_hash` computes the approval for the block producer that satisfies approval conditions
    - `process_approval` currently just updates the datastructures necessary for `get_my_approval_reference_hash` to work.
    
    - Tests for `compute_quorums` that compare it to a different naive implementation;
    - Added checks to `chunk_managemenent` tests that confirm that with all the approvals arriving the previous two blocks have a quorum pre-vote and quorum pre-commit correspondingly.
Commits on Nov 7, 2019
  1. Fixing chunks retrieval for non-validators (#1660)

    SkidanovAlex committed Nov 7, 2019
    1. Properly fixing the case when a node is not a validator and doesn't need to request any chunks.
    2. Allow fetching chunks that are outside of the cache horizon, and only use the horizon for unknown chunks.
  2. Adding a test to monitor network structure sizes (#1659)

    evgenykuzyakov authored and ilblackdragon committed Nov 7, 2019
    * Adding a test to monitor network structure sizes
    
    * add notify limit
  3. Subscription to prefix changes (#1652)

    bowenwang1996 committed Nov 7, 2019
    * Subscription to prefix changes
    
    * fix suboptimal code
    
    * Rename type
    
    * address comment
    
    * Fix
Commits on Nov 6, 2019
  1. Add logging for state sync errors (#1644)

    mikhailOK authored and ilblackdragon committed Nov 6, 2019
    * Add logging for state sync errors
    
    * more refactoring
    
    * Don't use a vector of hashmaps
  2. Improve rate counter (#1649)

    evgenykuzyakov authored and ilblackdragon committed Nov 6, 2019
    * Improve rate counter perf
    
    * Make it even better by fixing compilation error
    
    * Add tests, refactor Tracker
Commits on Nov 5, 2019
  1. Split trie into some files (#1641)

    mikhailOK authored and ilblackdragon committed Nov 5, 2019
  2. Refactoring Nightshade (#1624)

    SkidanovAlex committed Nov 5, 2019
     Refactoring Nightshade
    
    - Replace ChunkPart and ChunkOnePart messages with unified PartialEncodedChunk message
    - Add logic that tries downloading from other peers if the chunk producer is offline, and then ultimately tries to reconstruct the chunk from other parts
    - Sanity tests for the above
    - Don't wait for all the full chunks to get assembled to produce a block, produce once has the required one parts
  3. Rpc query routing (#1642)

    bowenwang1996 authored and ilblackdragon committed Nov 5, 2019
    * Query routing
    
    * add test
    
    * rustfmt
  4. Run wasmparser::validate before pwasm utils (#1640)

    mikhailOK committed Nov 5, 2019
  5. Check validity of account id when generating genesis (#1643)

    bowenwang1996 committed Nov 5, 2019
    * Check validity of account id when generating genesis
    
    * remove print
Commits on Nov 4, 2019
  1. script for start staging testnet (#1620)

    bowenwang1996 committed Nov 4, 2019
    update wasmer to 0.9.0 (#1611)
    
    Make it executable
    
    treat staging specially in main
    
    Add chain id to handshake. (#1623)
    
    * Add chain_id to handshake.
    
    * Fix test and benches
    
    Get chain_id out of ChainGenesis
    
    Remove chain_id from chain
  2. Fix transaction status query (#1606)

    bowenwang1996 committed Nov 4, 2019
    * Fix transaction status query
    
    * address comments
    
    * Better error message
    
    * Convert mailbox error
    
    * formatting
  3. Consider epoch id when sending challenge on double signing (#1628)

    bowenwang1996 authored and ilblackdragon committed Nov 4, 2019
    * Fix sending challenge when receiving the same block header twice
    
    * fix different epoch id bug
    
    * ChainStore cache update (#1629)
    
    * ChainStore cache update
    
    * Rename store method in ChainStore
    
    * refactor
    
    * Address comments
  4. Switch StandaloneRuntime to use random fees (#1593)

    evgenykuzyakov committed Nov 4, 2019
    * Switch StandaloneRuntime to use random fees
    
    * Move to runtime_group_mod
Commits on Nov 3, 2019
  1. trie parts (#1592)

    mikhailOK authored and ilblackdragon committed Nov 3, 2019
    * trie parts
    
    * script for start staging testnet
    
    * Make it executable
    
    * Traverse nodes skips if tree is empty
  2. Network metrics (#1622)

    mfornet authored and ilblackdragon committed Nov 3, 2019
    * Routing table metrics.
    
    * Add metrics.
    
    * Drop message metrics.
    
    * Add missing import.
  3. Merklize execution outcomes (#1627)

    ilblackdragon authored and SkidanovAlex committed Nov 3, 2019
    * Merklize the ExecutionOutcome and add the root to the ChunkHeader and BlockHeader
    
    * Store outcomes with proofs and return proofs when outcomes are queried
  4. helper script to start near as service (#1552)

    ailisp authored and nearprotocol-bulldozer committed Nov 3, 2019
    * helper script to start near as service
    * Merge branch 'staging' into systemd
    * Merge branch 'staging' into systemd
    * Merge branch 'staging' into systemd
    * Merge refs/heads/staging into systemd
    * Merge refs/heads/staging into systemd
    * Merge refs/heads/staging into systemd
    * script for start staging testnet
    * Merge branch 'staging' into start-staging-net
    * Make it executable
    * Merge pull request #1613 from nearprotocol/start-staging-net
    
    Script for start staging testnet
    * Merge refs/heads/staging into systemd
    * Merge refs/heads/staging into systemd
    * Merge refs/heads/staging into systemd
    * Merge refs/heads/staging into systemd
    * Merge refs/heads/staging into systemd
    * Merge refs/heads/staging into systemd
    * Merge refs/heads/staging into systemd
  5. Telemetry urls for different network (#1632)

    ilblackdragon committed Nov 3, 2019
    * Add telemetry url to start_* scripts for different network
    
    * Modify docker run script to accept telemetry url
    
    * Add named arguments to function calls
  6. Pre commit script to auto rustfmt (#1602)

    ailisp authored and ilblackdragon committed Nov 3, 2019
    * test pre-commit
    
    * remove pre-commit
    
    * first step
    
    * script to install precommit
    
    * use bash
  7. dashboard for different network and a few fix (#1590)

    ailisp authored and nearprotocol-bulldozer committed Nov 3, 2019
    * dashboard for different network and a few fix
    * Merge refs/heads/staging into dashboard-for-different-network
    * Merge refs/heads/staging into dashboard-for-different-network
    * Merge refs/heads/staging into dashboard-for-different-network
    * Merge refs/heads/staging into dashboard-for-different-network
    * Merge refs/heads/staging into dashboard-for-different-network
    * Merge refs/heads/staging into dashboard-for-different-network
  8. recover code coverage (#1545)

    ailisp authored and nearprotocol-bulldozer committed Nov 3, 2019
    * recover code coverage
    * fix stage
    * looking file to test coverage locally and remotely
    * cleanup old test binaries to get only current coverage
    * coverage debugging
    * work around codecov doesn't follow symlink
    * work around to fix codecov symlink
    * restore gitlab ci
    * retrigger build after gitlab-ci ui settings change
    * script for start staging testnet
    * Merge branch 'staging' into start-staging-net
    * Make it executable
    * Merge branch 'staging' into recover-coverage
    * Merge pull request #1613 from nearprotocol/start-staging-net
    
    Script for start staging testnet
    * Merge refs/heads/staging into recover-coverage
    * Merge refs/heads/staging into recover-coverage
  9. Don't hardcode state in challenge test (#1614)

    mikhailOK authored and ilblackdragon committed Nov 3, 2019
    * script for start staging testnet
    
    * Make it executable
    
    * Don't hardcode state in challenge test
  10. Fix slashing violating invariant (#1625)

    ilblackdragon authored and SkidanovAlex committed Nov 3, 2019
    * Fixing invariant violation post slashing
    
    * Update comments
  11. Network refactor (#1589)

    mfornet authored and nearprotocol-bulldozer committed Nov 3, 2019
    * Refactor messages from PeerMessage 2 RoutedMessage
    * Route back some type of messages.
    * Remove done TODO
    * Nit
    * Merge refs/heads/staging into network-refactor
    * script for start staging testnet
    * Merge branch 'staging' into start-staging-net
    * Make it executable
    * Merge pull request #1613 from nearprotocol/start-staging-net
    
    Script for start staging testnet
    * Merge refs/heads/staging into network-refactor
    * Merge refs/heads/staging into network-refactor
    * Fixing account announce being filtered because of the next epoch id
  12. Fix sending challenge when receiving the same block header twice (#1609)

    bowenwang1996 committed Nov 3, 2019
    * Fix sending challenge when receiving the same block header twice
    
    * script for start staging testnet
    
    * Make it executable
    
    * Address comment
Commits on Nov 2, 2019
Commits on Oct 31, 2019
  1. update wasmer to 0.9.0 (#1611)

    mikhailOK committed Oct 31, 2019
Commits on Oct 30, 2019
  1. Network update (#1517)

    mfornet authored and nearprotocol-bulldozer committed Oct 30, 2019
    * Remove done todo and address alex comments.
    * Implement round robin for routing.
    * Recalculate routing table after some timeout.
    * Add simple test.
    * Edge removal.
    * Remove itertools dependency
    * Use only fold for min-max
    * Address comments from illia
    * Fix merge conflict
    * Cargo fmt
    * Increase tight test time.
Older
You can’t perform that action at this time.