{"action":"opened","issue":{"url":"https://api.github.com/repos/cryptonomex/graphene/issues/165","labels_url":"https://api.github.com/repos/cryptonomex/graphene/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/cryptonomex/graphene/issues/165/comments","events_url":"https://api.github.com/repos/cryptonomex/graphene/issues/165/events","html_url":"https://github.com/cryptonomex/graphene/issues/165","id":95450339,"number":165,"title":"transfer operation triggers dupe check assertion during flood","user":{"login":"emfrias","id":6821518,"avatar_url":"https://avatars.githubusercontent.com/u/6821518?v=3","gravatar_id":"","url":"https://api.github.com/users/emfrias","html_url":"https://github.com/emfrias","followers_url":"https://api.github.com/users/emfrias/followers","following_url":"https://api.github.com/users/emfrias/following{/other_user}","gists_url":"https://api.github.com/users/emfrias/gists{/gist_id}","starred_url":"https://api.github.com/users/emfrias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emfrias/subscriptions","organizations_url":"https://api.github.com/users/emfrias/orgs","repos_url":"https://api.github.com/users/emfrias/repos","events_url":"https://api.github.com/users/emfrias/events{/privacy}","received_events_url":"https://api.github.com/users/emfrias/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-16T14:50:58Z","updated_at":"2015-07-16T14:50:58Z","closed_at":null,"body":"I've seen this error a few times during network flood tests.\r\n```\r\nunlocked >>> flood_network testx3 10000\r\nflood_network testx3 10000\r\n2519676ms th_a       wallet.cpp:1680               flood_network        ] Created 3333 accounts in 307409 milliseconds\r\n0 exception: unspecified\r\n10 assert_exception: Assert Exception\r\n(skip & skip_transaction_dupe_check) || trx_idx.indices().get<by_trx_id>().find(trx_id) == trx_idx.indices().get<by_trx_id>().end():\r\n    {}\r\n    th_a  db_block.cpp:480 _apply_transaction\r\n\r\n    {\"trx\":{\"ref_block_num\":144,\"ref_block_prefix\":541185854,\"expiration\":\"2015-07-15T21:42:30\",\"operations\":[[0,{\"fee\":{\"amount\":2000000,\"asset_id\":\"1.3.0\"},\"from\":\"1.2.16\",\"to\":\"1.2.3316\",\"amount\":{\"amount\":1000000,\"asset_id\":\"1.3.0\"},\"extensions\":[]}]],\"extensions\":[],\"signatures\":[\"1f793865b68360396fac3cd3195cd840f3baaf9130ec2c2170da5894670b1b160b7654c2c291f33be854267362eed4476c08f02aa35d7ecb816962ac4e97a7768f\"]}}\r\n    th_a  db_block.cpp:550 _apply_transaction\r\n\r\n    {\"trx\":{\"ref_block_num\":144,\"ref_block_prefix\":541185854,\"expiration\":\"2015-07-15T21:42:30\",\"operations\":[[0,{\"fee\":{\"amount\":2000000,\"asset_id\":\"1.3.0\"},\"from\":\"1.2.16\",\"to\":\"1.2.3316\",\"amount\":{\"amount\":1000000,\"asset_id\":\"1.3.0\"},\"extensions\":[]}]],\"extensions\":[],\"signatures\":[\"1f793865b68360396fac3cd3195cd840f3baaf9130ec2c2170da5894670b1b160b7654c2c291f33be854267362eed4476c08f02aa35d7ecb816962ac4e97a7768f\"]}}\r\n    th_a  db_block.cpp:192 push_transaction\r\n    {\"error\":\"10 assert_exception: Assert Exception\\n(skip & skip_transaction_dupe_check) || trx_idx.indices().get<by_trx_id>().find(trx_id) == trx_idx.indices().get<by_trx_id>().end(): \\n    {}\\n    th_a  db_block.cpp:480 _apply_transaction\\n\\n    {\\\"trx\\\":{\\\"ref_block_num\\\":144,\\\"ref_block_prefix\\\":541185854,\\\"expiration\\\":\\\"2015-07-15T21:42:30\\\",\\\"operations\\\":[[0,{\\\"fee\\\":{\\\"amount\\\":2000000,\\\"asset_id\\\":\\\"1.3.0\\\"},\\\"from\\\":\\\"1.2.16\\\",\\\"to\\\":\\\"1.2.3316\\\",\\\"amount\\\":{\\\"amount\\\":1000000,\\\"asset_id\\\":\\\"1.3.0\\\"},\\\"extensions\\\":[]}]],\\\"extensions\\\":[],\\\"signatures\\\":[\\\"1f793865b68360396fac3cd3195cd840f3baaf9130ec2c2170da5894670b1b160b7654c2c291f33be854267362eed4476c08f02aa35d7ecb816962ac4e97a7768f\\\"]}}\\n    th_a  db_block.cpp:550 _apply_transaction\\n\\n    {\\\"trx\\\":{\\\"ref_block_num\\\":144,\\\"ref_block_prefix\\\":541185854,\\\"expiration\\\":\\\"2015-07-15T21:42:30\\\",\\\"operations\\\":[[0,{\\\"fee\\\":{\\\"amount\\\":2000000,\\\"asset_id\\\":\\\"1.3.0\\\"},\\\"from\\\":\\\"1.2.16\\\",\\\"to\\\":\\\"1.2.3316\\\",\\\"amount\\\":{\\\"amount\\\":1000000,\\\"asset_id\\\":\\\"1.3.0\\\"},\\\"extensions\\\":[]}]],\\\"extensions\\\":[],\\\"signatures\\\":[\\\"1f793865b68360396fac3cd3195cd840f3baaf9130ec2c2170da5894670b1b160b7654c2c291f33be854267362eed4476c08f02aa35d7ecb816962ac4e97a7768f\\\"]}}\\n    th_a  db_block.cpp:192 push_transaction\",\"data\":{\"id\":31333,\"error\":{\"code\":1,\"message\":\"10 assert_exception: Assert Exception\\n(skip & skip_transaction_dupe_check) || trx_idx.indices().get<by_trx_id>().find(trx_id) == trx_idx.indices().get<by_trx_id>().end(): \\n    {}\\n    th_a  db_block.cpp:480 _apply_transaction\\n\\n    {\\\"trx\\\":{\\\"ref_block_num\\\":144,\\\"ref_block_prefix\\\":541185854,\\\"expiration\\\":\\\"2015-07-15T21:42:30\\\",\\\"operations\\\":[[0,{\\\"fee\\\":{\\\"amount\\\":2000000,\\\"asset_id\\\":\\\"1.3.0\\\"},\\\"from\\\":\\\"1.2.16\\\",\\\"to\\\":\\\"1.2.3316\\\",\\\"amount\\\":{\\\"amount\\\":1000000,\\\"asset_id\\\":\\\"1.3.0\\\"},\\\"extensions\\\":[]}]],\\\"extensions\\\":[],\\\"signatures\\\":[\\\"1f793865b68360396fac3cd3195cd840f3baaf9130ec2c2170da5894670b1b160b7654c2c291f33be854267362eed4476c08f02aa35d7ecb816962ac4e97a7768f\\\"]}}\\n    th_a  db_block.cpp:550 _apply_transaction\\n\\n    {\\\"trx\\\":{\\\"ref_block_num\\\":144,\\\"ref_block_prefix\\\":541185854,\\\"expiration\\\":\\\"2015-07-15T21:42:30\\\",\\\"operations\\\":[[0,{\\\"fee\\\":{\\\"amount\\\":2000000,\\\"asset_id\\\":\\\"1.3.0\\\"},\\\"from\\\":\\\"1.2.16\\\",\\\"to\\\":\\\"1.2.3316\\\",\\\"amount\\\":{\\\"amount\\\":1000000,\\\"asset_id\\\":\\\"1.3.0\\\"},\\\"extensions\\\":[]}]],\\\"extensions\\\":[],\\\"signatures\\\":[\\\"1f793865b68360396fac3cd3195cd840f3baaf9130ec2c2170da5894670b1b160b7654c2c291f33be854267362eed4476c08f02aa35d7ecb816962ac4e97a7768f\\\"]}}\\n    th_a  db_block.cpp:192 push_transaction\",\"data\":{\"code\":10,\"name\":\"assert_exception\",\"message\":\"Assert Exception\",\"stack\":[{\"context\":{\"level\":\"error\",\"file\":\"db_block.cpp\",\"line\":480,\"method\":\"_apply_transaction\",\"hostname\":\"\",\"thread_name\":\"th_a\",\"timestamp\":\"2015-07-15T21:42:02\"},\"format\":\"(skip & skip_transaction_dupe_check) || trx_idx.indices().get<by_trx_id>().find(trx_id) == trx_idx.indices().get<by_trx_id>().end(): \",\"data\":{}},{\"context\":{\"level\":\"warn\",\"file\":\"db_block.cpp\",\"line\":550,\"method\":\"_apply_transaction\",\"hostname\":\"\",\"thread_name\":\"th_a\",\"timestamp\":\"2015-07-15T21:42:02\"},\"format\":\"\",\"data\":{\"trx\":{\"ref_block_num\":144,\"ref_block_prefix\":541185854,\"expiration\":\"2015-07-15T21:42:30\",\"operations\":[[0,{\"fee\":{\"amount\":2000000,\"asset_id\":\"1.3.0\"},\"from\":\"1.2.16\",\"to\":\"1.2.3316\",\"amount\":{\"amount\":1000000,\"asset_id\":\"1.3.0\"},\"extensions\":[]}]],\"extensions\":[],\"signatures\":[\"1f793865b68360396fac3cd3195cd840f3baaf9130ec2c2170da5894670b1b160b7654c2c291f33be854267362eed4476c08f02aa35d7ecb816962ac4e97a7768f\"]}}},{\"context\":{\"level\":\"warn\",\"file\":\"db_block.cpp\",\"line\":192,\"method\":\"push_transaction\",\"hostname\":\"\",\"thread_name\":\"th_a\",\"timestamp\":\"2015-07-15T21:42:02\"},\"format\":\"\",\"data\":{\"trx\":{\"ref_block_num\":144,\"ref_block_prefix\":541185854,\"expiration\":\"2015-07-15T21:42:30\",\"operations\":[[0,{\"fee\":{\"amount\":2000000,\"asset_id\":\"1.3.0\"},\"from\":\"1.2.16\",\"to\":\"1.2.3316\",\"amount\":{\"amount\":1000000,\"asset_id\":\"1.3.0\"},\"extensions\":[]}]],\"extensions\":[],\"signatures\":[\"1f793865b68360396fac3cd3195cd840f3baaf9130ec2c2170da5894670b1b160b7654c2c291f33be854267362eed4476c08f02aa35d7ecb816962ac4e97a7768f\"]}}}]}}}}\r\n    th_a  state.cpp:38 handle_reply\r\n\r\n    {\"from\":\"import\",\"to\":\"testx3181\",\"amount\":\"10\",\"asset_symbol\":\"CORE\",\"memo\":\"\",\"broadcast\":true}\r\n    th_a  wallet.cpp:1567 transfer\r\n```\r\n\r\nMy setup is: three machines, each running a witness_node process and a cli_wallet connected to the witness on that machine.  One node is running all 10 witnesses.  All three nodes are flooding the network.  Every time I have seen this, it happens on a non-witness node, but that could be coincidence."}}