6. A rejection msg always appears during the deal-importing process

First, you can check whether the deal is rejected:

lotus-miner stroage-deals list -v| grep <deal_cid>

If the deal is rejected, please check whether the filter is set correctly in the configuration file [Dealmaking] of the storage provider as shown below:

[Dealmaking]
  Filter = "/home/test/dealfilter.pl"

Deals sent from the address in the denylist cannot be imported. You can check the denylistin the dealfilter.pl and add/delete addresses according to your needs.

#!/usr/bin/perl

use warnings;
use strict;
use 5.014;

# Uncomment this to lock down the miner entirely
# print "Miner currently upgrading - BACK SOON";
# exit 1;

# A list of wallets you do not want to deal with
# For example this enty will prevent a shady ribasushi
# character from storing things on your miner
my $denylist = { map {( $_ => 1 )} qw(
  f3qpseg3qlpckug75qqas6jsce4up6kg5bo4yaefwnxo4fwx2n5f7jpkkrzy37jxnshkd6mazxso2rxfoax111
)};

use JSON::PP 'decode_json';

my $deal = eval { decode_json(do{ local $/; <> }) };
if( ! defined $deal ) {
  print "Deal proposal JSON parsing failed: $@";
  exit 1;
}

if( $denylist->{$deal->{Proposal}{Client}} ) {
  print "Deals from client wallet $deal->{Proposal}{Client} are not welcome";
  exit 1;
}

exit 0;

If you encounter any issues, please contact us on our Discord channel.

Last updated