MCPcopy
hub / github.com/bitcoinj/bitcoinj / put

Method put

core/src/main/java/org/bitcoinj/store/BlockStore.java:39–39  ·  view source on GitHub ↗

Saves the given block header+extra data. The key isn't specified explicitly as it can be calculated from the StoredBlock directly. Can throw if there is a problem with the underlying storage layer such as running out of disk space.

(StoredBlock block)

Source from the content-addressed store, hash-verified

37 * disk space.
38 */
39 void put(StoredBlock block) throws BlockStoreException;
40
41 /**
42 * Returns the StoredBlock given a hash. The returned values block.getHash() method will be equal to the

Callers 15

callMethod · 0.65
incrementCounterMethod · 0.65
setUpMethod · 0.65
outboundPingAndWaitMethod · 0.65
parseScriptPubKeysMethod · 0.65
mainMethod · 0.65
BlockAndValidityMethod · 0.65
migrateV1toV2Method · 0.65
broadcastTransactionMethod · 0.65
putKeyMethod · 0.65

Implementers 3

SPVBlockStorecore/src/main/java/org/bitcoinj/store/
MemoryBlockStorecore/src/main/java/org/bitcoinj/store/
MemoryFullPrunedBlockStorecore/src/main/java/org/bitcoinj/store/

Calls

no outgoing calls

Tested by 8

setUpMethod · 0.52
outboundPingAndWaitMethod · 0.52
parseScriptPubKeysMethod · 0.52
mainMethod · 0.52
BlockAndValidityMethod · 0.52
migrateV1toV2Method · 0.52
broadcastTransactionMethod · 0.52
createFakeBlockMethod · 0.52