Implement Basic Auth for API and Owner API (#1566)
* Add api_secret * Add to base64 method * Add basic auth in API * Add Basic Auth to owner API * Add flag to enable disable basic auth * Add .api_secret file
This commit is contained in:
committed by
hashmap
parent
acec59e249
commit
62fd8f2124
+3
-4
@@ -280,8 +280,8 @@ impl OutputPrintable {
|
||||
let mut merkle_proof = None;
|
||||
if output
|
||||
.features
|
||||
.contains(core::transaction::OutputFeatures::COINBASE_OUTPUT) && !spent
|
||||
&& block_header.is_some()
|
||||
.contains(core::transaction::OutputFeatures::COINBASE_OUTPUT)
|
||||
&& !spent && block_header.is_some()
|
||||
{
|
||||
merkle_proof = chain.get_merkle_proof(&out_id, &block_header.unwrap()).ok()
|
||||
};
|
||||
@@ -564,8 +564,7 @@ impl BlockPrintable {
|
||||
Some(&block.header),
|
||||
include_proof,
|
||||
)
|
||||
})
|
||||
.collect();
|
||||
}).collect();
|
||||
let kernels = block
|
||||
.kernels()
|
||||
.iter()
|
||||
|
||||
Reference in New Issue
Block a user