Comments (2)
We need a solid IDS with a group of rules. before that, i dont think doing something like banning ip or having a black list will work. @shargon how do you think?
from neo.
Well this happens when evil server sends (see below) and never disconnects. Does GetHeaders
message for 1000s of iterations than stops and does 1 GetBlockByIndex
, 12 GetAddr
and then asks for GetHeaders
again, continuously over and over again.
new Header()
{
Index = 4605403u,
MerkleRoot = UInt256.Parse($"0x0000000000000000000000000000000000000000000000000000000000000000"),
NextConsensus = UInt160.Parse($"0x0000000000000000000000000000000000000000"),
Nonce = 2083236893,
PrevHash = UInt256.Parse($"0x0000000000000000000000000000000000000000000000000000000000000000"),
Timestamp = new DateTime(2016, 7, 15, 15, 8, 21, DateTimeKind.Utc).ToTimestampMS(),
Version = 0,
Witness = new()
{
InvocationScript = Array.Empty<byte>(),
VerificationScript = new[] { (byte)0x11 },
},
};
My Thoughts
- Disconnect on invalid index sequence. For example, if node is at block
0
and node gets block353826
(this isn't development node, so need to fast forward?) - Disconnect on invalid range of timestamp on next 10x blocks and than resets on success. Also have this number be random for number of times (instead of 10).
- Actually check current prevhash with sent one (On the block/header).
from neo.
Related Issues (20)
- Make it mandatory for elected candidates to offer Testnet nodes HOT 9
- UT random failure HOT 1
- Hard Code the MainNet and TestNet HOT 6
- Discuss if OOP and a standard SDK interface can be used to improve the developer experience
- Problems running current master version HOT 4
- Load and export storage to json HOT 5
- Add Support to .NET 8 HOT 4
- `neo-cli` No Screen Rendering on Invalid Arguments. HOT 2
- Change Wallet Encryption `CypherMode` HOT 4
- Problems running current master version HOT 4
- Optimize OnPersist HOT 14
- Make public `GetCommitteeAddress`
- Abolish master branch name - migrate to main HOT 2
- Coverage for BLS still looks like to be wrong HOT 4
- Improve how to estimate what to pay for Oracle requests/callbacks HOT 7
- What would happen if the number of Committee nodes is increased from 21 to 23? HOT 11
- Add NNS support to native contracts HOT 2
- How can I create an Account from a WIF? HOT 7
- Allow fees to be reduced to less than 1
- Allow Wallets / Accounts to be created using less parameters
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 neo.