bbc1.core.repair_manager module

Copyright (c) 2017 beyond-blockchain.org.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

class bbc1.core.repair_manager.RepairManager(network=None, domain_id=None, workingdir='.', loglevel='all', logname=None)[source]

Bases: object

Data repair manager for forged transaction/asset

REQUEST_REPAIR_ASSET_FILE = 1
REQUEST_REPAIR_TRANSACTION = 0
REQUEST_TO_SEND_ASSET_FILE = 4
REQUEST_TO_SEND_TRANSACTION_DATA = 2
RESPONSE_ASSET_FILE = 5
RESPONSE_TRANSACTION_DATA = 3
exit_loop()[source]

Exit the manager loop

put_message(msg=None)[source]

append a message to the queue