btck_block_copy

Copy a block. Blocks are reference counted, so this just increments the reference count.

Synopsis

Declared in <kernel/bitcoinkernel.h>

[[nodiscard, __nonnull__]]
btck_Block*
btck_block_copy(btck_Block const* block);

Return Value

The copied block.

NOTE

The return value should not be discarded.

Parameters

NameDescription
block [in]Non-null.