aboutsummaryrefslogtreecommitdiff
path: root/src/validation.cpp
diff options
context:
space:
mode:
authorSjors Provoost <sjors@sprovoost.nl>2021-05-13 18:51:47 +0200
committerSjors Provoost <sjors@sprovoost.nl>2021-12-02 13:16:18 +0700
commitdce8c4c38111556ca480aa0e63c46b71f66b508f (patch)
treed43051c4e187c70cf3d700d8eb308012811b041a /src/validation.cpp
parentb884ababc29ce963826d8a4327ed6a5e629ff175 (diff)
downloadbitcoin-dce8c4c38111556ca480aa0e63c46b71f66b508f.tar.xz
rpc: getblockfrompeer
Co-authored-by: John Newbery <john@johnnewbery.com>
Diffstat (limited to 'src/validation.cpp')
-rw-r--r--src/validation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/validation.cpp b/src/validation.cpp
index 6ed5e7a548..33ce3ffcbe 100644
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -3408,6 +3408,7 @@ bool CChainState::AcceptBlock(const std::shared_ptr<const CBlock>& pblock, Block
// This requires some new chain data structure to efficiently look up if a
// block is in a chain leading to a candidate for best tip, despite not
// being such a candidate itself.
+ // Note that this would break the getblockfrompeer RPC
// TODO: deal better with return value and error conditions for duplicate
// and unrequested blocks.