tari-project / tari

The Tari protocol
https://tari.com
BSD 3-Clause "New" or "Revised" License
350 stars 218 forks source link

Base node could not supply block templates for merge mining proxy #6224

Closed hansieodendaal closed 7 months ago

hansieodendaal commented 7 months ago

With a recent stress test the bas node could not supply valid templates to its connected merge mining proxy. After a restart mining could continue as normal.

Base node errors:

2024-03-02 00:36:41.220081400 [c::bn::comms_interface::inbound_handler] DEBUG New block template requested and prepared at height: #2985, target difficulty: 200,475, block hash: `41119f7b7db2f223d1c9618d92c09ffd91354d4d4e3da6a5822e46fbe50b10cf`, weight: 114072, input(s): 4, output(s): 2000, kernel(s): 4
2024-03-02 00:36:41.224490600 [c::bn::base_node_service::service] ERROR BaseNodeService failed to send reply to local request Ok("NewBlockTemplate")
2024-03-02 00:45:36.813485100 [c::bn::comms_interface::inbound_handler] DEBUG Handling remote request GetNewBlock (Block Height=2987)
2024-03-02 00:45:36.815291200 [c::bn::base_node_service::service] ERROR BaseNodeService failed to handle local request ChainStorageError(InvalidArguments { func: "prepare_new_block", arg: "template", message: "Expected new block template height to be 2992 but was 2987" })

merge mining proxy error:

2024-03-01 16:51:36.117995600 [minotari_mm_proxy::proxy] DEBUG handle_get_block_template: monero block #3095587
2024-03-01 16:51:36.118013400 [common_sqlite::connection] DEBUG Connecting to database using 'MemoryShared("zmN64ze1")'
2024-03-01 16:51:36.190435200 [minotari_mm_proxy::proxy] ERROR Method "getblocktemplate" failed handling request: GrpcRequestError { status: Status { code: InvalidArgument, message: "Expected new block template height to be 2769 but was 2768", metadata: MetadataMap { headers: {"content-type": "application/grpc", "date": "Fri, 01 Mar 2024 14:51:35 GMT", "content-length": "0"} }, source: None }, details: "" }
hansieodendaal commented 7 months ago

See: