bnb-chain / greenfield

Greenfield is a decentralized storage platform.
GNU Affero General Public License v3.0
117 stars 49 forks source link

feat: add check for payment data #607

Closed forcodedancing closed 4 months ago

forcodedancing commented 5 months ago

Description

Check payment data in endblock:

This feature should be only enabled for a fullnode which does not provide rpc service - the check is time consuming.

Rationale

To detect issues in payment module further.

Example

###############################################################################
###                           PaymentCheck Config                           ###
###############################################################################
[payment-check]
# enabled - the flag to enable/disable payment check
enabled = true
# interval - the block interval run check payment
interval = 50

Changes

Notable changes:

Potential Impacts

unclezoro commented 4 months ago

interval = 50 maybe too large, I think check it per day is ok?

forcodedancing commented 4 months ago

interval = 50 maybe too large, I think check it per day is ok?

sure, it is ok