From 093d60bf7fb5cd23cdddbd76cdf48b87093fc8db Mon Sep 17 00:00:00 2001 From: Steven Roose Date: Thu, 6 Jun 2019 10:39:03 +0100 Subject: [PATCH] Rename BlockHeader::spv_validate to validate_pow --- src/blockdata/block.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/blockdata/block.rs b/src/blockdata/block.rs index 4fdd230..064e5ae 100644 --- a/src/blockdata/block.rs +++ b/src/blockdata/block.rs @@ -163,10 +163,8 @@ impl BlockHeader { (max_target(network) / self.target()).low_u64() } - /// Performs an SPV validation of a block, which confirms that the proof-of-work - /// is correct, but does not verify that the transactions are valid or encoded - /// correctly. - pub fn spv_validate(&self, required_target: &Uint256) -> Result<(), util::Error> { + /// Checks that the proof-of-work for the block is valid. + pub fn validate_pow(&self, required_target: &Uint256) -> Result<(), util::Error> { use byteorder::{ByteOrder, LittleEndian}; let target = &self.target();