• Tsvetomir Dimitrov's avatar
    Disputes which are unknown for the Runtime are sent with priority by the... · 20e56a45
    Tsvetomir Dimitrov authored
    
    Disputes which are unknown for the Runtime are sent with priority by the Provisioner when preparing inherent data (#5336)
    
    * Implement MallocSizeOf for DisputeState
    
    * Implementation of `Disputes` Runtime API message
    
    * Modify on-chain dispute import
    
    * Add feature flag for the new functionality
    
    * Update node/core/provisioner/src/onchain_disputes.rs
    
    Co-authored-by: default avatarAndrei Sandu <[email protected]>
    
    * Add target to log messages
    
    * Update node/core/provisioner/src/lib.rs
    
    Co-authored-by: default avatarAndronik <[email protected]>
    
    * Use `staging-client` feature to enable the client code using the staging runtime api
    
    * Remove TODO comment
    
    * Don't filter out DisputeState
    
    * Fix disputes selection logic
    
    * spelling
    
    * Tests
    
    * Rename `Disputes` message to `StagingDisputes`
    
    * Update node/core/provisioner/src/lib.rs
    
    Co-authored-by: default avatarBernhard Schuster <[email protected]>
    
    * Code review feedback
    
    - Logging
    - Separate error module
    - Add additional fields for GetOnchainDisputesErr
    - logging and impl MallocSizeOf
    - fix impl MallocSizeOf for DisputeState
    - fix tests
    
    * Update node/core/provisioner/src/error.rs
    
    Co-authored-by: default avatarAndronik <[email protected]>
    
    * Update node/core/provisioner/src/lib.rs
    
    Co-authored-by: default avatarAndronik <[email protected]>
    
    * Update node/core/provisioner/src/lib.rs
    
    Co-authored-by: default avatarAndronik <[email protected]>
    
    * Apply suggestions from code review
    
    dummy metrics instance
    
    Co-authored-by: default avatarBernhard Schuster <[email protected]>
    
    * Revert "Apply suggestions from code review"
    
    This reverts commit 6dc518cbf77e037ff4760d315938a68c806e662e.
    
    * Code review feedback: #[cfg(test)] for new_dummy() in metrics
    
    * Code review feedback: break the disputes generation logic in separate functions
    
    * Code review feedback - align_eight
    
    Co-authored-by: default avatarAndrei Sandu <[email protected]>
    Co-authored-by: default avatarAndronik <[email protected]>
    Co-authored-by: default avatarBernhard Schuster <[email protected]>
    20e56a45