本文整理汇总了Python中attrdict.AttrDict.store_and_forward_only方法的典型用法代码示例。如果您正苦于以下问题:Python AttrDict.store_and_forward_only方法的具体用法?Python AttrDict.store_and_forward_only怎么用?Python AttrDict.store_and_forward_only使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类attrdict.AttrDict
的用法示例。
在下文中一共展示了AttrDict.store_and_forward_only方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1:
# 需要导入模块: from attrdict import AttrDict [as 别名]
# 或者: from attrdict.AttrDict import store_and_forward_only [as 别名]
config.bip32_enabled = True
config.bip70_enabled = True
config.bip70_default_amount = 0
config.bip70_default_expiration = 900
config.bip72_compatability = True
config.bip70_audit_log = True
config.bip70_payment_expiration_days = 61
config.ir_expiration_days = 30
config.rpr_expiration_days = 16
config.ir_nonce_allowable = 5
config.ir_nonce_db_maxkeys = 100000000
config.old_nonce_cleanup_size = 1000
config.paymentprotocol_message_expiration_days = 7
# Operational Modes
config.store_and_forward_only = True
# Presigned Payment Request
config.presigned_pr_limit = 100
# Path Configuration
config.home_dir = '/Users/frank/PycharmProjects/addressimo/addressimo'
config.plugin_directories = [
'logger',
'resolvers',
'signer'
]
redis_uri = 'redis://localhost:6379'
if 'ADDRESSIMO_REDIS_URI' in os.environ:
redis_uri = os.environ['ADDRESSIMO_REDIS_URI']
示例2:
# 需要导入模块: from attrdict import AttrDict [as 别名]
# 或者: from attrdict.AttrDict import store_and_forward_only [as 别名]
config.bip32_enabled = True
config.bip70_enabled = True
config.bip70_default_amount = 0
config.bip70_default_expiration = 900
config.bip72_compatability = True
config.bip70_audit_log = True
config.bip70_payment_expiration_days = 61
config.ir_expiration_days = 30
config.rpr_expiration_days = 16
config.ir_nonce_allowable = 5
config.ir_nonce_db_maxkeys = 100000000
config.old_nonce_cleanup_size = 1000
config.paymentprotocol_message_expiration_days = 7
# Operational Modes
config.store_and_forward_only = False
# Presigned Payment Request
config.presigned_pr_limit = 100
# Path Configuration
config.home_dir = '/Users/frank/PycharmProjects/addressimo/addressimo'
config.plugin_directories = [
'logger',
'resolvers',
'signer'
]
# Redis Setup
config.redis_id_obj_uri = 'redis://localhost:6379/1'
config.redis_tx_map_uri = 'redis://localhost:6379/2'