zhiqiangxu
zhiqiangxu
The invariant of kademlia requires that every k-bucket of every node contains at least one contact if a node exists in the appropriate range. This may not be guaranteed when...
Now I have to create separate `cli.Flag` flag instances for `Required` and `Optional`, which is quite tedious: ```golang // HeightFlag ... var HeightFlag = cli.IntFlag{ Name: "height", Usage: "specify height",...
Without this patch, [this test](https://github.com/zhiqiangxu/multicall/blob/master/multicall_test.go#L96) will report `abi: cannot unmarshal string in to string`: After this patch, the above test will pass. After all, there's no point to call `set`...
Steps to reproduce: ``` alias antlr='java -jar ~/Downloads/antlr-4.10.1-complete.jar' git clone https://github.com/ethereum/solidity solidity cd solidity/docs/grammar antlr -Dlanguage=Go -o parser SolidityLexer.g4 SolidityParser.g4 ``` In the generated `solidity_parser.go` file, there're both `func NewExpressionContext`...
```golang // SetWriteBuffer sets the socket write buffer, no effect if it's accepted from Listener func (s *UDPSession) SetWriteBuffer(bytes int) error { s.mu.Lock() defer s.mu.Unlock() if s.l == nil {...
`s.buf` bytes may be not aligned, so the correct implementation should take that into consideration. **Update** Switched to use `makeAlignedBuf` instead. --- This change is [](https://reviewable.io/reviews/dgraph-io/badger/1272)
Currently `Engine.Sync2` will append fields at the tail no matter where the added fields locates, it should keep the order by using sql like `add column after ...` :)
If a previous `onNewBlockSyncReq` failed, later tries should not be denied.
The fix is straight forward, following is some compatible analysis about why it's safe to apply the fix. `VbftBlockInfo.Proposer` is only ever retrieved(immutable referenced) by : ```golang func (blk *Block)...