Comments (2)
Originally raised in autonity
repo - transferred here per comment by @Jason-Zhangxin-Chen , see closed issue autonity/autonity#954
Hi @cmjc, from your context, rule NO. 10 is not defined in the rule set:
// Must match autonity/types.go
enum Rule {
PN,
PO,
PVN,
PVO,
PVO12,
C,
C1,
InvalidProposal, // The value proposed by proposer cannot pass the blockchain's validation.
InvalidProposer, // A proposal sent from none proposer nodes of the committee.
Equivocation // Multiple distinguish votes(proposal, prevote, precommit) sent by validator.
}
// @dev return true if sending the event can lead to slashing
function canSlash(address _offender, Rule _rule, uint256 _block) public view returns (bool) {
uint256 _severity = _ruleSeverity(_rule);
uint256 _epoch = autonity.getEpochFromBlock(_block);
return slashingHistory[_offender][_epoch] < _severity ;
}
As the typing system limits the input of _rule should be a type of Rule, from inside the canSlash funtion we cannot capture such error. Thus from AUT tool side, we can do some check on it. This issue so move to Aut tool.
from aut.
@cmjc I'm not satisfied that this is an autcli issue and so I'm reopening the original ticket.
from aut.
Related Issues (20)
- Jailed validator cause an error with info call on aut HOT 4
- aut validator info throws OverflowError: Python int too large to convert to C ssize_t HOT 1
- Add command to call CDP position status (cdps) HOT 2
- Support ASM functionality
- Support Accountability functionality
- Support Oracle Contract functionality
- Fix failure due to `ModuleNotFoundError` from `eth_rlp` HOT 3
- Installation fails on Python v3.12 HOT 1
- Support Websocket connections again
- Problen in the path returned by the command "aut account list" when we use the option --with-files HOT 3
- `contract call` to `Accountability.abi` `getValidatorFaults` throws `TypeError`s for JSON serialization and encoding HOT 1
- Result of the command "aut validator info" when we put an address which is not an address of a valid validator HOT 1
- The description of the `get-committee` option for the `aut protocol -h` command contain an extra quote HOT 1
- Question about the difference of 2 options of the command "aut protocal" HOT 1
- Running into dependency issues when running aut for Autonity network's gamified testing HOT 1
- `aut validator` commands `registerValidator` and `info` update for AGC v0.13.0 HOT 3
- Don't fail `node info` when node doesn't have `admin` API enabled HOT 1
- Description of the command "lntn-balances" when we use "aut account -h" HOT 1
- Quote to remove in the description of the help of the command "aut protocol get-committee" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aut.