Documentation ¶
Overview ¶
Cache for transactions that have been verified
Index ¶
- func DeleteByLink(link merkle.Digest)
- func DeleteByTxId(txId merkle.Digest)
- func FetchVerified(count int) ([]merkle.Digest, []transactionrecord.Packed, int, error)
- func Finalise()
- func Initialise() error
- func Lock()
- func ReadCounters() (int, int, []int)
- func SetVerified(payId PayId)
- func Unlock()
- type IssueInfo
- type PayId
- type TransferInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteByLink ¶ added in v0.3.5
remove a record using a link id
func DeleteByTxId ¶ added in v0.3.5
remove a record using a transaction id
func FetchVerified ¶ added in v0.3.5
fetch a series of verified transactions
func SetVerified ¶ added in v0.3.5
func SetVerified(payId PayId)
move transaction(s) to verified cache
Types ¶
type IssueInfo ¶ added in v0.3.5
result returned by store issues
func StoreIssues ¶ added in v0.3.5
func StoreIssues(issues []*transactionrecord.BitmarkIssue) (*IssueInfo, bool, error)
store packed record(s) in the Unverified table
return payment id and a duplicate flag
for duplicate to be true all transactions must all match exactly to a previous set - this is to allow for multiple submission from client without receiving a duplicate transaction error
type PayId ¶ added in v0.3.5
type PayId [48]byte
type to represent a payment identifier this is considered as a big endian value for difficulty comparison Note: no reversal is required for this
func (PayId) GoString ¶ added in v0.3.5
convert a binary pay id to big endian hex string for use by the fmt package (for %#v)
func (PayId) MarshalText ¶ added in v0.3.5
convert pay id to big endian hex text
func (PayId) String ¶ added in v0.3.5
convert a binary pay id to big endian hex string for use by the fmt package (for %s)
func (*PayId) UnmarshalText ¶ added in v0.3.5
convert little endian hex text into a pay id
type TransferInfo ¶ added in v0.3.5
type TransferInfo struct { Id PayId TxId merkle.Digest Packed []byte PreviousTransfer *transactionrecord.BitmarkTransfer OwnerData []byte }
result returned by store transfer
func StoreTransfer ¶ added in v0.3.5
func StoreTransfer(transfer *transactionrecord.BitmarkTransfer) (*TransferInfo, bool, error)
store a single transfer