acceptcfg

package
v0.32.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package acceptcfg is the payment acceptance settings every bstore configuration file names (bcommon acceptance.Policy): the writer's home, the gateway's and the provider's, the same keys in each.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// ThresholdSats is the largest payment taken on the network's
	// acceptance; above it a payment waits for its block. Unset is
	// acceptance.DefaultThresholdSats; zero holds every payment.
	ThresholdSats *uint64 `json:"accept_threshold_sats,omitempty"`
	// PayerLimit and TotalLimit bound the satoshis taken fast and not yet
	// mined, per payer and in all; zero is one and ten thresholds.
	PayerLimit uint64 `json:"accept_payer_limit,omitempty"`
	TotalLimit uint64 `json:"accept_total_limit,omitempty"`
	// WindowSeconds is how long a fast payment counts against the limits
	// unless it mines first; zero is an hour. WatchSeconds is how long to
	// watch for a conflict after the network's acceptance; zero is none.
	WindowSeconds uint64 `json:"accept_window_seconds,omitempty"`
	WatchSeconds  uint64 `json:"accept_watch_seconds,omitempty"`
}

Config is embedded in a configuration file's struct, so its keys sit beside the file's own.

func (Config) AcceptPolicy

func (c Config) AcceptPolicy() acceptance.Policy

AcceptPolicy is the rule the settings name.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL