diff options
| author | Ross Nicoll <[email protected]> | 2017-11-19 22:12:19 +0000 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2018-09-19 19:23:29 +0100 |
| commit | e9c0ac7afbbba108554927cb270a74b88fba7bbb (patch) | |
| tree | a18589fa63b6f145e25f0b1ee89aa94c998fd0fd | |
| parent | Correct PoW calculation logic to use locally calcualted difficulty (diff) | |
| download | discoin-e9c0ac7afbbba108554927cb270a74b88fba7bbb.tar.xz discoin-e9c0ac7afbbba108554927cb270a74b88fba7bbb.zip | |
Handle legacy v2 block at #66064
| -rw-r--r-- | src/primitives/pureheader.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/primitives/pureheader.h b/src/primitives/pureheader.h index 0443a530d..841743632 100644 --- a/src/primitives/pureheader.h +++ b/src/primitives/pureheader.h @@ -149,7 +149,9 @@ public: */ inline bool IsLegacy() const { - return nVersion == 1; + return nVersion == 1 + // Dogecoin: We have a random v2 block with no AuxPoW, treat as legacy + || (nVersion == 2 && GetChainId() == 0); } }; |