MCPcopy Create free account
hub / github.com/CPChain/chain / Add

Method Add

database/ipfs.go:28–28  ·  view source on GitHub ↗

Add adds and pin data to IPFS.

(r io.Reader)

Source from the content-addressed store, hash-verified

26 Cat(path string) (io.ReadCloser, error)
27 // Add adds and pin data to IPFS.
28 Add(r io.Reader) (string, error)
29 // Unpin unpins the data from IPFS, unpinned data may be removed by GC in future.
30 Unpin(path string) error
31}

Callers 15

protocol_params.goFile · 0.65
mainFunction · 0.65
CostMethod · 0.65
CostMethod · 0.65
SignatureValuesMethod · 0.65
testParallelDBFuncsFunction · 0.65
PutMethod · 0.65
OffsetTimeMethod · 0.65
makeHeaderFunction · 0.65
GetBlockNumberMethod · 0.65
WriteHeaderMethod · 0.65
GetHeaderMethod · 0.65

Implementers 2

FakeIpfsAdapterdatabase/ipfs.go
FaultIpfsAdapterprivate/private_tx_helper_test.go

Calls

no outgoing calls

Tested by 15

testParallelDBFuncsFunction · 0.52
TestGenesisAllocFunction · 0.52
TestInvalidTransactionsFunction · 0.52
TestStrictTxListAddFunction · 0.52
testSchedulerFunction · 0.52
TestSignRaceFunction · 0.52
TestTokenBucketFunction · 0.52
testClientCancelFunction · 0.52
Test_ecrecoverFunction · 0.52