Comments (5)
Do you have a stacktrace from the honest node?
from qtum.
@davidjaenson can you add an automated test for this case? Basically ensure that CheckBlock and AcceptBlock rejects a PoS block with no coinstake tx
from qtum.
#0 0x00005555557dad94 in CTransaction::IsCoinStake (this=0x74) at ./primitives/transaction.h:397
#1 0x00005555557b6a77 in CheckBlock (block=..., state=..., consensusParams=...,
fCheckPOW=fCheckPOW@entry=true, fCheckMerkleRoot=fCheckMerkleRoot@entry=true,
fCheckSig=fCheckSig@entry=true) at validation.cpp:3546
#2 0x000055555582da48 in PartiallyDownloadedBlock::FillBlock (this=0x7fffac403710, block=...,
vtx_missing=std::vector of length 0, capacity 0) at blockencodings.cpp:202
#3 0x00005555556dda15 in ProcessMessage (pfrom=0x7fffac000020, pfrom@entry=0x7fffbb7fce40,
strCommand="blocktxn", vRecv=..., nTimeReceived=nTimeReceived@entry=93825004973920, chainparams=...,
connman=..., interruptMsgProc=...) at net_processing.cpp:2183
#4 0x00005555556de894 in ProcessMessage (pfrom=0x7fffbb7fce40, pfrom@entry=0x7fffbc0008c0,
strCommand="cmpctblock", vRecv=..., nTimeReceived=93825004973920, chainparams=..., connman=...,
interruptMsgProc=...) at net_processing.cpp:2136
The problem appears to be at
https://github.com/qtumproject/qtum_new/blob/ce3e47d30c9b26e1ee9b36a978664f0ba0a7107e/src/validation.cpp#L3546
which has the potential for being an out of range access
from qtum.
I was able to repro it and fixed that specific area, look at my latest PR
from qtum.
Fixed by #144
from qtum.
Related Issues (20)
- qtum port build fails.
- How to find receive address using wallet version 23.1.0 HOT 3
- No faucet available for testnet. HOT 1
- Status: 0/unconfirmed, not in memory pool Sent QTUM to external wallet and no transaction showing, WHERE's MY MONEY?? HOT 1
- Can I use the qtum testnet data with Qtumd.exe for Window 10? HOT 1
- compile/linking problem on debian 12
- Qtum core 20.4 won't update....how to remedy for non-tech
- Request Support for BLS12 based signature verification
- Then, after removal, install 0.20.2 - 0.20.4, crashed after synchronization for a period of time after qtum-qt startup. HOT 1
- Makefile:9243: recipe for target 'qt/test/test_qtum-qt' failed Ubuntu 18-64bit HOT 1
- qtum-qt and qtumd large size
- What's difference between qtum and qtum-bitcore? HOT 1
- qtum/depends/packages/qt.mk
- configure: error: libgmp missing MacOs Bigsur HOT 1
- The test tap is no longer accessible, address http://testnet-faucet.qtum.info/
- build private network failed, cant syn block data ,what reason?
- Issue after upgrading to 22.0 HOT 3
- RPC Flailure on `getblock` on verbosity level 2
- About M1 core HOT 1
- How to "activate/get verified" (?) QTUM 0.14.3 wallet HOT 2
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 qtum.